Getting started
New to SquaredanceGuidesFAQsBrands
Brand Quick StartCampaignsPartnershipsBrand ReportingManaging CreativesBillingPartners
Partner Quick StartTracking & IntegrationsPartner ReportingSubmitting CreativesPayoutsReferralsTechnical Docs
Tracking ChangelogInstalling Google Analytics on a Campaign
If you decide to use Google Analytics but have already placed Google Tag Manager pixels, you can add the tag type Google Analytics: Universal Analytics. You'll need to set the variable and add your Google Analytics Tracking ID. Once you've done that, Google Tag Manager will automatically fire your Google Analytics pixels without any additional work.
However, if you plan on placing Google Analytics pixels directly to the platform, follow the instructions below:
Step 1
In your analytics portal, visit the Admin page, which can be found on the bottom left (the cogwheel). Click on cogwheel icon and select Tracking Code.
Step 2
Your global site tag and your tracking ID display on the page. Copy the site tag and paste it into your notepad.
Step 3
If you want to track specific events, visit the google developers page to find a gtag.js event commands that you wish to track. Depending on the event you wish to track, you'll need to change the <action>
to any of the Default Google Analytics Events which are also listed on the Google Developers page. In this example, we will modify the action here to conversion to track Purchases on Squaredance's Platform. You can configure additional events like add_payment_info
, begin_checkout
, or generate_lead
and place these scripts to fire on Squaredance events.
<script>
gtag('event', conversion, {
'send_to': 'Your GA Tracking ID',
'value': xxpayoutxx,
'currency': 'USD',
'transaction_id': 'xxhitidxx'
});
</script>
<script>
gtag('event', add_payment_info, {
'send_to': 'Your GA Tracking ID'
});
</script>
<script>
gtag('event', begin_checkout, {
'send_to': 'Your GA Tracking ID'
});
</script>
<script>
gtag('event', generate_lead, {
'send_to': 'Your GA Tracking ID'
});
</script>
Step 4
Grab the event snippet from Step 3 above and add it to your Global site tag in your notepad. Then adjust the 'sent_to': 'Your GA Tracking ID'
and replace "Your GA Tracking ID" with your Tracking ID.
Step 5 - Placing the global site tag and events (non-purchase)
- Go to the Squaredance Platform and select the Pixel tab in the Campaign to which you wish to add a pixel.
- Click Add, which allows you to name the pixel.
- Next, click on the Fires At dropdown and select Funnel Events.
- or if you have specific event pixels, select the specific event under "Fires At" and insert the Global Site Tag and Event Snippet (for ex. add_payment_info, begin_checkout, etc.)
- Scroll down and make sure the Format is set to HTML/JS.
- Then paste only your Global site tag into the code field and hit Save.
Step 6 - Placing the global site tag and purchase event
Repeat the same instruction found in step 5, but select the specific event you wish to fire on fires at. In this case, we want to specifically fire this pixel on Purchase, so we select that on the dropdown. Next, insert the Global site tag and the event script into the code field box and hit save.