Reply
Highlighted
Visitor
Posts: 3
Registered: ‎04-28-2016

How do I track javascript errors and report them to google analytics?

I am migrating some tags from GTM to IQ. One of those tags is a javascript error tag that tracks the error message, error line, and error URL as event action and labels. How do I do the same thing in IQ?

Reply
0 Kudos
Employee Emeritus
Posts: 232
Registered: ‎09-01-2015

Re: How do I track javascript errors and report them to google analytics?

[ Edited ]

After further testing the option I purposed earlier does not give the desired results. I am pulling the post down.  See Adrian's comments below.

Visitor
Posts: 3
Registered: ‎04-28-2016

Re: How do I track javascript errors and report them to google analytics?

Thank you for this solution. I was hoping for a more drag-and-drop solution as I am very new to IQ and I'm not a developer. Is there any possibility that Tealium could make a tag for this functionality?

Reply
0 Kudos
Employee Emeritus
Posts: 232
Registered: ‎09-01-2015

Re: How do I track javascript errors and report them to google analytics?

@tglaittli As someone that is new to Tealium, I would encourage you to leverage your Tealium Deployment team.  You can point them at this post and they will be able to add this as part of your initial deployment.  The mappings are pretty much drag and drop and the code sample provided can hopefully be copy/pasted into a DOM Ready Extension. 

Community Manager
Posts: 470
Registered: ‎08-26-2015

Re: How do I track javascript errors and report them to google analytics?

Hello @tglaittli. Let me see if I can find your account manager. Stay tuned...

Reply
0 Kudos
Community Manager
Posts: 470
Registered: ‎08-26-2015

Re: How do I track javascript errors and report them to google analytics?

Okay, found them! @Jaico117 and @steve_thurner should be reaching out to your shortly @tglaittli. Let us know if you have any other questions. 

Reply
0 Kudos
Tealium Employee
Posts: 206
Registered: ‎09-01-2015

Re: How do I track javascript errors and report them to google analytics?

@brian_kranson

@tglaittli

 

Just a heads up on error tracking. Most likely you will just see the generic:
"Script Error", "line 0"

 

As the utag files do not contain the cross origin header that would allow us to capture more details.

 

Adrian

Reply
0 Kudos
Visitor
Posts: 1
Registered: ‎01-13-2016

Re: How do I track javascript errors and report them to google analytics?

@adrian_browning

What the better solution to have a custom track error? Plan to Allow the cross origin header?

Gustavo Decarlo
Reply
0 Kudos
Tealium Employee
Posts: 206
Registered: ‎09-01-2015

Re: How do I track javascript errors and report them to google analytics?

@gustavodecarlo

 

At present I do not believe we have any plans to add this header to the CDN files.

I would recommend raising this request through your account manager.

 

If you really wanted this information, at present, you would have to host the files on your own network, at which point the cross origin issue is removed. But also so is the benifits of the mCDN.

 

Adrian

Reply
0 Kudos