Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (19 sloc) 1.83 KB

Google Ads gclid tester

How to use?

Script was written on Google Apps Script and can be run in Google Ads account in section: tools and settings->scripts->new script.

What does it solve?

If auto-tagging is enabled in Google Ads account to final URL automatically is added gclid value for tracking purposes. In case if your URL doesn't work correctly with this parameter it can be the reason of data discrepancy in Google Analytics and it can even redirect your end-user to the page 404.

How does it work?

Script programmatically checks final URLs in your ads and tests gclid parameter according to this article.

Where can I check result?

At the end of script execution new Google spreadsheet is created on Google drive and report is pushed to the first sheet in this file.


Additional permission for Spreadsheet and Gogole Drive service is required because script should create spreadsheet and save it on Google Drive.


50 ads with 50 different desktop/mobile urls were tested and output is available under this link. OK (gclid works correctly) NOT_OK (gclid doesn't work correctly) NO_IDEA (script was unable to determine the status and test should be done manually) NO_IDEA (script was unable to determine the status and test should be done manually) OK (gclid works correctly) ERR (this site is unavailable and while checking occured error)

You can’t perform that action at this time.