Skip to content
This repository has been archived by the owner. It is now read-only.

Tracking Outbound Links with GA #26

Closed
amb00010 opened this issue Sep 17, 2014 · 0 comments
Closed

Tracking Outbound Links with GA #26

amb00010 opened this issue Sep 17, 2014 · 0 comments

Comments

@amb00010
Copy link
Member

Client email...

ello, following up on my call, I am having trouble using the goal-tracking feature in Google Analytics on my Aurora site to track the “event” of someone clicking on an outbound link—specifically a link out of my Aurora site to our Hobsons application system server-- - as a goal. To do this requires setting up a tracking event as part of the HTML code for the outbound link.

Specifically here is the format (with the tracking event code in red, note “ga” is the js call to Google Universal Analytics, and the variables “Hobsons”, “Clickthrough”, and “Application” are defined by me for this particular event)

<a
href="//app.applyyourself.com/AYApplicantLogin/fl_ApplicantConnectLogin.asp?id=uconnbus"
onClick="ga('send', 'event', 'Hobsons', 'Clickthrough', 'Application');"

Hobsons Application Clickthrough with Event Tracking

In Aurora, I am entering the onClick code as html in Source Code view, but the The onClick code is being stripped from the Aurora page after I save it.

Here are two reference websites
· https://support.google.com/analytics/answer/1136920 is the Google Analytics procedure for tracking outbound links as events. Note the procedure here uses a parameterized version of this ga() call in a local javascript function, I am not looking to do that at this point, am happy to hard code the call in the Hobsons link
· http://www.seoweather.com/google-analytics-event-tracking-code-generator/ provides sample code for a hard coded call

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant