Overview
This article will explain how to integrate with Google Tag Manager (GTM) to track clicks and conversions in TUNE using the publicly-available Google Tag Template.
Server Postback with Transaction ID must be selected as the tracking protocol for the offer to track conversions correctly.
Adding the TUNE Tag Template
Adding the template requires searching in Google’s community template gallery for TUNE’s tag template and accepting the associated permissions. This only needs to be done once per Google Tag Manager account.
- Navigate to the Templates section and click Search Gallery under the Tag Templates heading.
- Search “TUNE” in the community template gallery search bar, and click to add it to your workspace.
- Accept the permissions associated with the template. Note that the script injection permission is only permitted to inject scripts from TUNE’s SDK domain, js.go2sdk.com. This allows us to place our tag template on your site.
- The TUNE tag template is now available for use in this account.
Adding a Click Tag
After adding the template to a Google Tag Manager account, you’ll want to create a tag for tracking clicks from your partners.
- Navigate back to the Tags section and click New to add a new tag.
- When asked to choose a tag type, click the TUNE Tag template.
- Next, the tag needs to have the fields filled in. The values will depend on each individual use case, but at least one network id and tracking domain pair are always required. Click Add a Network. Enter your network id (can be found in your TUNE account under Support - API) and tracking domain (such as “https://test.go2cloud.org”), then click Add.
-
Select the radio button for Click. When Click is selected, any of the TUNE click Parameters can be added. These click parameter fields are purely optional, and allow you to provide either a default value or an override value for a given parameter. Default parameters will only be used if the click URL does not already include a value for that parameter, while Override parameters will take precedence over the values in the URL.
Note: The “Name” should be a TUNE parameter, and the “Value” should be a GTM macro or hardcoded value - 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. That way a click will be tracked no matter which page on your site the user lands on.
Here is an example of a TUNE tag set to Click with a default value “aff1value” to be set for aff_sub, and an override value “aff2value” to be set for aff_sub2. - Save the tag.
Adding a Conversion Tag
- To track conversions, we’ll add a second tag. Navigate back to the Tags section and click New to add another new tag.
- When asked to choose a tag type, click the TUNE Tag template, as before.
- Click Add a Network, enter your Network ID (can be found in your TUNE account under Support - API) and tracking domain (such as “https://test.go2cloud.org”) as before, then click Add.
- Select the Convert radio button. For the Convert action, any of the optional TUNE parameters for a conversion link can be used. There is no concept of defaults and overrides with conversion parameters. Note: The “Name” should be a TUNE parameter, and the “Value” should be a GTM macro or hardcoded value
- 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.
- Save the tag.
Adding Goals (optional)
-
To track goal conversions, you would want to add a goal parameter to your Conversion Tag. Navigate to the tag, click Conversion Parameters and then Add Conversion Parameter.
-
Set the "Name" to goal_name and the "Value" to the URL friendly name of your goal which can be found in your TUNE account by clicking the name of your goal in the Goals panel on your offer.
Note: Don’t forget to publish your changes. If you've added or edited tags, triggers, and variables in a workspace, you will need to publish those changes to make them operational on your website or app.
Additional Resources
For more information about Google Tag Manager, please refer to Google’s Tag Manager Help Center.
If you are a GTM user, you might need additional permissions to read, edit, approve or publish. Talk to your admin to make sure the right access is set up: Users and Permissions