Untitled
unknown
plain_text
3 years ago
3.2 kB
27
Indexable
<!-- Google Ads Remarketing Tag --> <!-- CODE SETTINGS START --> <!-- CODE SETTINGS START --> <!-- Please add your Google Ads Audience Source Tag ID --> {% assign fa_google_ads_audience_tag_id = 10851443587 %} <!-- Please add your alpha2 code --> {% assign fa_product_id_alpha2_code = 'IT' %} <!-- set your product id values are default, product_id, parent_id, sku--> {% assign fa_product_id = 'default' %} <!-- CODE SETTINGS END --> <!-- CODE SETTINGS END --> <!-- ==================================== --> <!-- DO NOT EDIT ANYTHING BELOW THIS LINE --> {% if fa_google_coding %}{% assign fa_google_coding = true %}{%- else -%}{% assign fa_google_coding = false %}{%- endif -%} {% if fa_google_coding == false %} <script async src="https://www.googletagmanager.com/gtag/js?id=AW-{{ fa_google_ads_audience_tag_id }}"></script> {%- endif -%} {%- if cart.currency.iso_code == 'GBP' or cart.currency.iso_code == 'USD' or cart.currency.iso_code == 'CAD' or cart.currency.iso_code == 'AUD' or cart.currency.iso_code == 'BWP' or cart.currency.iso_code == 'BND' or cart.currency.iso_code == 'DOP' or cart.currency.iso_code == 'GTQ' or cart.currency.iso_code == 'HKD' or cart.currency.iso_code == 'INR' or cart.currency.iso_code == 'ILS' or cart.currency.iso_code == 'YEN' or cart.currency.iso_code == 'KES' or cart.currency.iso_code == 'KOR' or cart.currency.iso_code == 'LBP' or cart.currency.iso_code == 'MYR' or cart.currency.iso_code == 'MXN' or cart.currency.iso_code == 'NPR' or cart.currency.iso_code == 'NZD' or cart.currency.iso_code == 'NIO' or cart.currency.iso_code == 'NGN' or cart.currency.iso_code == 'PKR' or cart.currency.iso_code == 'CNY' or cart.currency.iso_code == 'PHP' or cart.currency.iso_code == 'SGD' or cart.currency.iso_code == 'LKR' or cart.currency.iso_code == 'CHF' or cart.currency.iso_code == 'TWD' or cart.currency.iso_code == 'TSH' or cart.currency.iso_code == 'THB' or cart.currency.iso_code == 'UGX' or cart.currency.iso_code == 'KWD' -%} {%- assign fa_product_price = checkout.total_price | money_without_currency | remove:',' -%} {%- else -%} {%- assign fa_product_price = checkout.total_price | money_without_currency | remove:'.' | replace: ',', '.' -%} {%- endif -%} {% assign fa_event = 'purchase' %} <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'AW-{{ fa_google_ads_audience_tag_id }}'); </script> <!-- Global site tag (gtag.js) - Ads. --> <script> gtag('event', '{{ fa_event }}', { 'send_to': 'AW-{{ fa_google_ads_audience_tag_id }}', 'value': {{ fa_product_price }}, 'items': [ {% for item in checkout.line_items %} { {% if fa_product_id == 'default' %} 'id': 'shopify_{{ fa_product_id_alpha2_code }}_{{ item.product_id }}_{{ item.variant_id }}', {% elsif fa_product_id == 'product_id' %} 'id': '{{ item.variant_id }}', {% elsif fa_product_id == 'parent_id' %} 'id': '{{ item.parent_id }}', {% elsif fa_product_id == 'sku' %} 'id': '{{ item.sku }}', {% endif %} 'google_business_vertical': 'retail' }, {% endfor %} ] }); </script> <!-- Google Ads Remarketing Tag -->
Editor is loading...