Last active
January 5, 2016 09:12
-
-
Save rafath/9c536cd311bcad720053 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Kod tagu remarketingowego Google/Shoople.pl dla shoper/click shop --> | |
<script type="text/javascript"> | |
var site = ''; | |
var prodid = ''; | |
var totalvalue = ''; | |
if ($('body').hasClass('shop_index')) { | |
site = 'home'; | |
} else { | |
if ($('body').hasClass('shop_product')) { | |
site = 'product'; | |
var prodid =$('form.form-basket input[name=stock_id]').val(); | |
var totalvalue = parseFloat($('span[itemprop="price"]').text()); | |
} else { | |
if ($('body').hasClass('shop_product_list')) { | |
if ($('#shop_category0').length) { | |
site = 'searchresults'; | |
} else { | |
site='category' | |
} | |
} else { | |
if ($('body').hasClass('shop_basket')) { | |
site = 'cart'; | |
} else { | |
if ($('body').hasClass('shop_basket_done')) { | |
site = 'purchase'; | |
} else { | |
site = 'other'; | |
} | |
} | |
} | |
} | |
} | |
var google_tag_params = { | |
ecomm_prodid: prodid, | |
ecomm_pagetype: site, | |
ecomm_totalvalue: totalvalue | |
}; | |
</script> | |
<script type="text/javascript"> | |
var google_conversion_id = XXXXX; | |
var google_custom_params = window.google_tag_params; | |
var google_remarketing_only = true; | |
</script> | |
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script> | |
<noscript> | |
<div style="display:inline;"> | |
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/XXXXX/?value=0&guid=ON&script=0"/> | |
</div> | |
</noscript> | |
<!-- koniec tagu remarketingowego Google/Shoople.pl --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment