Skip to main content
All CollectionsSales TrackingJavascript Tracking
How to Implement Javascript Tracking using Google Tag Manager
How to Implement Javascript Tracking using Google Tag Manager
Simma Baghbanbashi avatar
Written by Simma Baghbanbashi
Updated over a month ago

Aspire integrates with TUNE for client-side conversion tracking via Google Tag Manager. TUNE provides a publicly available tag template that can be used to set up tracking on any webpage that is already using Google Tag Manager, without requiring additional code changes.

This article will guide you through the process of setting up TUNE tag templates to track clicks and conversions for link offers within Aspire.

Important: If you are using Shopify's Checkout Extensibility, please refer to this guide before setting up your tag templates.

Step 1: Add the TUNE Tag Template

This step only needs to be completed once per Google Tag Manager account.

  1. Within your GTM workspace, navigate to the Templates section and click Search Gallery under the Tag Templates heading.

    Screen_Shot_2022-10-26_at_2.36.38_PM.png

    Note: If the "Search Gallery" or "New" options are not available, you likely have Read Only access. Make sure you are granted Publish access by your GTM Admin.

  2. Search “tune” in the community template gallery search bar, and click to add it to your workspace.

    Screen_Shot_2022-10-26_at_2.38.46_PM.png
  3. Accept the permissions associated with the template by clicking Add. Note that the script injection permission is only permitted to inject scripts from TUNE’s approved SDK domain, which is js.go2sdk.com. By granting this permission, you're allowing TUNE’s tracking tag to be placed on your site.

    Screen_Shot_2022-10-26_at_2.40.12_PM.png

  4. The TUNE tag template will now be available for use in your Google Tag Manager account.


Step 2: Create a Click Tag

After adding the template to a Google Tag Manager account, you’ll need to create a tag to track clicks from your partners.

  1. Click Tags on the left-hand side and click New to add a new tag.

  2. Click Tag Configuration. When asked to choose a tag type, select the TUNE Tag template.

  3. Next, you will fill in the network and tracking domain pair for Aspire by clicking Add a Network.


    Enter "aspireiq" for the Network ID and https://aspireiq.go2cloud.org for the Domain, then click Add.


    Important: The Network ID value is case sensitive, so please ensure you enter "aspireiq" (without quotes) for both the Click and Conversion tags.

  4. Under Action, select Click.

  5. Each tag in Google Tag Manager needs a trigger to tell it when to fire. In general, the Click tag should be triggered on all pages except for the conversion page. This way, a click will be tracked no matter which page on your site the user lands on.

    In the example below, the tag will be triggered on all page views, excluding the Thank You page.

  6. Save the tag.


Step 3: Create a Conversion Tag

  1. Navigate back to the Tags section and click New to add another new tag.

  2. When asked to choose a tag type, click the TUNE Tag template, as before.

  3. Click Add a Network. Enter "aspireiq" for the Network ID and https://aspireiq.go2cloud.org for the Domain, then click Add.

  4. Under Action, select Conversion.

  5. Click Add Conversion Parameter. At a minimum, you need to add the following parameters:

    1. "amount": Set this to the order subtotal value for your store. For Shopify stores using Additional Scripts, use the variable {{ line_items_subtotal_price | money_without_currency }}.

    2. "adv_unique1": Set this to the Order ID for your store. For Shopify stores using Additional Scripts, use the variable {{ checkout.order_number }}.


    💡 Important: The specific values for these parameters will vary based on your eCommerce platform. Work with your engineering or eCommerce team to identify the correct values for "amount" and "adv_unique1" for your store.

    Example for Shopify brands:

  6. Select a trigger for the Conversion tag. In general, the Conversion tag should only be fired on the page that confirms a conversion has taken place, such as a “Thank you” page or an “Order Confirmation” page.

  7. Save the tag.

  8. Once both tags have been created, be sure to publish the workspace changes by clicking Submit in the top right-hand corner.


Additional Resources

For more information about Google Tag Manager, please refer to Google’s Tag Manager Help Center.

This information was adapted from TUNE's help documentation.

Did this answer your question?