Google Ads Setup in ProductCart
With the latest GA4 Update installed, tracking Google Ads conversions is easy!
NOTE: These instructions ONLY apply IF you have installed the GA4 Upgrade on your ProductCart Store. Learn more about this upgrade here -> https://docs.productcart.com/link/article/ga4-gtm-upgrade-and-install
If you are familiar with Google Tag Manager (GTM) and have the GA4 Upgrade, you can connect your Google Ads conversions by doing the following. We'll start our instructions with the conversion important to most sellers, purchases!
Creating the PURCHASE conversion for Google Ads
- Make sure you have the New GA4 / GTM Update installed on your ProductCart store AND the Ecommerce Tracking Tag implemented in GTM (see bottom of article) -> https://docs.productcart.com/link/article/ga4-gtm-upgrade-and-install
- Make sure you have a Conversion Linker Tag set up that’s triggered for ALL pageviews. Conversion Linker documentation -> https://support.google.com/tagmanager/answer/7549390
- Create new variables to capture ecommerce data through the Data Layer
- In GTM, click VARIABLES > NEW
- Name your variable “dlv-TransactionID” (this will pass ProductCart order number)
- Select “Data Layer Variable” from list of variable options
- Make “Data Layer Variable” = ecommerce.transaction_id
- Save.
- Repeat the above Steps a – e, but change variable name to “dlv-Value” and Data Layer Variable to commerce.value where value is the total order amount.
- Create a Google Ads Conversion Tracking tag using the following IDs:
- Conversion ID (in Google Ads)
- Conversion Label (in Google Ads)
- Conversion Value = 0
- Conversion Transaction = 0
- Currency Code = USD (or whatever is correct for you)
- Check any other options of interest.
- Create a new trigger with Custom Event as "Trigger Type" with:
- "Event name" = purchase
- "This trigger fires on" = All Custom Events
- Publish to commit the container changes, then test one of your ads. When this is tested or published, dynamic data (like your order number & total purchase amount) will get passed to your conversions to Google Ads for each purchase.
Creating Other Google Ads Conversions
Creating events for the other ecommerce events is very easy. Just copy the purchase tag you just created (or create a new Google Ads Conversion Tag) and change the Conversion ID and Conversion Label to the corresponding conversion information in Google Ads. Every conversion in your Google Ads account will have a unique ID and Label. You will not need to add Conversion Value, UNLESS, you wish to assign some implied monetary amount to that conversion happening. Transaction ID can be left blank as well by default.
Use Custom Event as "Trigger Type" like before, and just update the "Event name" one of the following:
- view_item – Each time a product pageview is loaded. This doesn’t include categories. ONLY individual product pages count.
- add_to_cart – Any time a product is added to the cart or when any product is incremented in quantity within the cart.
- remove _from_cart – Any time a product is removed from the cart or when any product is decreased in quantity within the cart.
- view_cart – Any time the shopping cart page is loaded or reloaded when changes are made to the cart.
- add_to_wishlist – Any time a registered customer clicks and successfully adds a product to their wish list. This will not work for guest customers.
- begin_checkout – Any time checkout is initiated.
- add_shipping_info – When a customer adds shipping information and clicks continue in checkout.
- add_payment_info - When a customer selects a payment method and clicks continue in checkout and continues in the checkout process.
Let each trigger fire for "All Custom Events" and click Save.
Given that conversions can be a variety of different actions (pageviews, clicks, downloads, or form submits) on your website, there is no way to list instructions for them all. Contact our ProductCart team if you would like more assistance.