: Tracking a goal through a virtual pageview is not registering I am trying to track a goal in Google Analytics through a virtual pageview. As you can see in the code example, it is linking
I am trying to track a goal in Google Analytics through a virtual pageview. As you can see in the code example, it is linking out from a picture instead of text with a link.
I triple-checked to see if I had my Goals set up properly in the Admin panel, where the goal URL is set to "/click2", the goal type is URL destination and the match type is Head Match.
I am unsure if the problem lies in the fact that it's linking out to an "https" link or if the link is attached to a picture that serves as a Call To Action. I would appreciate if any of you can help shed some light on this problem I'm having.
More posts by @Alves908
3 Comments
Sorted by latest first Latest Oldest Best
Have you used the GA debugger? chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna?hl=en
Is the link going to a different domain? If so that could be the issue, I use events for tracking external links, and that works just fine. IMO it is a cleaner fit to use events for tracking external links rather than virtual pageviews.
If the link is not going to a different domain, why do you need a virtual pageview at all? Just use the url of the target page?
I would recommend checking within Google Analytics content section for the pageviews: this can be found in the menu under Content > site content > all pages; this will rule out an error in how the goal has been set up (however, the goal does look to be set up correctly)
Alternatively you could look to implement this piece of code:
www.goodwebpractices.com/roi/track-downloads-in-google-analytics-automatically.html
Although it would record more than what you want it would measure all external link clicks and that you wouldn't need to set up future on-click events to measure external clicks
Thanks
Jaryd
Do you have _gaq.push(['_trackPageview']); in your snippet just below your profile ID?
such as
gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);
It doesn't matter that you're linking from an image, i've used onclick Event tracking on input boxes. Are you tracking virtual page views anyplace else on your site? If so do they go to HTTP or HTTPS? Have you tested changing the href to http and not https?
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.