This document outlines the process for implementing Impact tracking on SEM campaigns in Google Ads or Microsoft Ads using either a custom JavaScript (JS) code or a Google Tag Manager (GTM) template.
There are two options for adding the Adara JavaScript tag to your website. This is one time step.
In your Google Tag Manager account, upload and import the Adara SEM tracking template. Click to Download the ADARA SEM tracking template.
To import the template:
.tpl
file.After importing, set up the GTM Trigger to fire on all pages for this Tag.
Save the new tag template to your Tag Manager container.
Publish the updated container version to your website.
If you don't use Tag Manager, you can insert the following JavaScript code directly in the <body>
section of your website's HTML:
xxxxxxxxxx
<script>
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
var adarapixelid= getParameterByName('adarapixelid');
var adara_campaignid = getParameterByName('adara_campaignid');
if (!adara_campaignid){adara_campaignid = 'NA'; console.log('adara_campaignid is not found, setting it to NA');}
if(adarapixelid){
var analyticEndPoint = 'https://tag.yieldoptimizer.com/ps/analytics?pxid='+adarapixelid+'&u3='+adara_campaignid
console.log('adarapixelid=',adarapixelid);
console.log('adara_campaignid=',adara_campaignid);
var img = document.createElement('img')
img.setAttribute('src',analyticEndPoint);
img.setAttribute('style','display:none');
document.body.appendChild(img);
//document.getElementById("demo").innerHTML = analyticEndPoint;
console.log('adara_pixel Fired',analyticEndPoint);
}
else{
console.log('adarapixelid is not found so Adara Pixel will not fire');
}
</script>
From your Impact account, go to Insights and click Impact Setup.
Click the Pixels tab.
Click the New Analytics Pixel button in the Analytics section.
Enter your Analytics pixel information and generate the new pixel(s).
Record your Pixel ID (pxid) as you'll need it later.
{lpurl}?adara_campaignid={campaignid}&adarapixelid={_adarapixelid}
_adarapixelid
and set the Impact Pixel ID as its valueCampaign URL Options view within Google Ads
In Google Ads, click All Campaigns.
From the left menu, select Settings.
Click the campaign you want to edit.
Under Additional settings, select Campaign URL options.
Paste your tracking template in the Tracking Template field.
In the Custom Parameters section, add:
adarapixelid
Click Save.
In Microsoft Ads, navigate to your campaign.
From the left menu, select Settings.
Click the campaign you want to edit.
Under Additional settings, select Campaign URL options.
Paste the tracking template in the Tracking Template field.
In the Custom Parameters section, add:
adarapixelid
Click Save
When someone clicks your add, the URL should look like this in your address bar:
https://www.yourwebsite.com?adara_campaignid=123454567&adarapixelid=12345
If you have additional UTM parameters, then the Adara UTMs will appear at the end of the URL string.
You can also test the URL within Google/Microsoft Ads.
To validate that the tracking parameters are correctly passed to Adara, use your browser’s developer tools to check the pixel firing once you land on the website:
Open Chrome Developer Tools:
Reload the page (press F5 or enter the URL again).
Check the console logs to ensure the SEM Campaign ID and Impact Pixel ID are correctly populated.
Navigate to Campaigns
Go to Ads & Extensions:
Edit the Final URL:
Review Other Settings (Optional):
Additional Considerations:
Ad Review: Once you update the Final URL, Google might review your ad again before it goes live. Allow some time for this approval process.
Tracking Template: If your ad uses a tracking template, ensure it is updated with the correct URL parameters. (Ensure you are not double firing the Impact pixel IDs!)
URL Testing: Before saving, verify that the new URL works properly by visiting it in a browser.
No, this is a one-time step to add to all pages of your site, so no matter the landing page URL your campaign uses, we always check for Adara Pixel IDs.
Yes! But this means you create more pixels in the Impact UI, and get more granular level reporting. However, we find that customers prefer Campaign or Ad Group level reporting.
Your Impressions are not going to align as the pixel only fires upon someone clicking your ads. So your clicks in campaign should be closely aligned with the counts you see in Impact UI. Please note that browser behavior, privacy consent compliance for your site, ad blockers, etc. could cause discrepancies on clicks. Ensure you do thorough testing!
Your Campaign ID is based on your SEM Ad Campaign, and it is only used for troubleshooting purposes. This is not shown in Impact UI. The template will automatically grab your respective Google or Microsoft Ad Campaign ID.
If you need further assistance, contact ADARA Support.