Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
integration:foxycart:google_adwords [2019/10/11 04:05] – [Step 1: Get your Google Adwords code] adam | integration:foxycart:google_adwords [2021/06/10 15:27] (current) – [Step 2: Install Adwords Tag] adam | ||
---|---|---|---|
Line 31: | Line 31: | ||
==== Step 2: Install Adwords Tag ==== | ==== Step 2: Install Adwords Tag ==== | ||
- | This will provide you with some instructions for installing the Global Site Tag first off. Complete that section for your needs. Unless you've already included the Global Site Tag within your Foxy templates or configuration, | + | === Global Site Tag === |
+ | This will provide you with some instructions for installing the Global Site Tag first off. Complete that section for your needs. Unless you've already included the Global Site Tag within your Foxy templates or configuration, | ||
+ | Copy the code shown to you based on your selection into the " | ||
+ | |||
+ | === Event Snippet === | ||
In the next section for the Event Snippet, leave the default selection as Page Load. Copy the code shown here into the " | In the next section for the Event Snippet, leave the default selection as Page Load. Copy the code shown here into the " | ||
- | < | + | < |
<!-- Event snippet for Test Ecommerce conversion page --> | <!-- Event snippet for Test Ecommerce conversion page --> | ||
< | < | ||
Line 47: | Line 51: | ||
</ | </ | ||
- | Modify the script to update the '' | + | Modify the script to update the '' |
<code javascript> | <code javascript> | ||
+ | if (FC.json.first_receipt_display && !FC.json.is_updateinfo && !FC.json.is_subscription_cancel) { | ||
+ | // gtag event code here | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The resulting snippet should look something like this: | ||
+ | |||
+ | <code html> | ||
<!-- Event snippet for Test Ecommerce conversion page --> | <!-- Event snippet for Test Ecommerce conversion page --> | ||
< | < | ||
- | if (FC.json.first_receipt_display) { | + | if (FC.json.first_receipt_display |
gtag(' | gtag(' | ||
' | ' |