Possible GCLID script conflict
-
We were capturing the gclid fine until after Nov. 23, 2020. I noticed recently an error in the dev console regarding the gclid script which is provided by google https://support.google.com/google-ads/answer/7012522?hl=en.
The error was Uncaught ReferenceError: expiryDate is not defined
at getExpiryRecord (?gclid=34234:316)
at addGclid </i>
I’m not a coder so it was difficult to find was wrong, and I found out the error only appeared when I was logged out of WP.
After checking possible WP updates or outdated theme as the reason, I decided to turn off plugins. The first one I turned off was SG Optimizer and the error went away. I turned it back on it was back, so I turned off some SGO settings. It looks like the Minify HTMl setting is causing this. Don’t know why it affects the script, but since I have turned this off, the gclid is working again.
- The topic ‘Possible GCLID script conflict’ is closed to new replies.