Web Analytics Tracking Code shows JavaScript error on every page

Hello,

I’m using this tracking code on my website. but this script throws JSON parsing error on every page.

https://YOURAPPNAME.infusionsoft.com/app/webTracking/getTrackingCode

VM678:1 Uncaught SyntaxError: Unexpected token o in JSON at position 1
at JSON.parse ()
at iframeCookieHandler (getTrackingCode?trackingId=b565d3515e44e407a7edb6893c517edf:176)

Better to post “this script” so that people can see ‘what’ is throwing the error.

Thanks, it’s Infusionsoft’s web analytics tracking code. I edited my post.

@Ran_Wei, can you post a link to one of the pages that is throwing the error?

Yeah, so what I’m referring to when I say it depends is what are you placing the link into? Where does the webform reside. WP, IS, Clickfunnels and other products will each have a slightly different way of adding the link.

Here is the website I’m seeing the errors.
https://secureknowledgeplus.nejm.org/

I did some debugging and it seems it’s the Adobe DTM library (we use Adobe DTM on the site) does a postMessage to iframe and then the message got captured by infusionsoft tracking lib which doesn’t understand the value passed in and thus the JS error.

1 Like

Yep, I was just about to post and point out the cross domain activity as a suspect.

1 Like