How to Turn Google Analytics Into Your Own Rank Tracker Using Custom Variables
-
I followed the instructions here http://www.seomoz.org/blog/gettings-rankings-into-ga-using-custom-variables, but cannot see the report in Analytics under "Custom Variables".
As I dont know JS syntax, I assume the code is wrong. I just added dohertyjf's code under my normal tracking code. Can someone tell me if and where the error is?
| |
Much obliged!
-
yup, it works now. you're the best yannick! thanks a lot for helping me with this!
-
ok, i changed it. Thanks Yannick! I'll post in a couple of days if the tracking works now.
-
Your body tag is this:
<body id="page_bg" class="color_blue bg_blue width_fmax">
And should be:
<body id="page_bg" class="color_blue bg_blue width_fmax" onLoad="rankingsPush();">
-
It doesn't work in either new or old interface.
I've not added any other custom variables. I don't think I added any additional onLoad Code to the tag either (not sure what you're referring to though). You can find the site here: http://www.travelcostarica.nu/
-
Code isn't wrong.
Did you add this: onLoad="rankingsPush();" to the tag?
Using any other custom variables that might overwrite these? You checked in the new and old interface?
-
oh sorry, i indicated the wrong source! i am actually referring to the code from this article http://www.seomoz.org/blog/gettings-rankings-into-ga-using-custom-variables!
-
This, above the GA code snippet:
And this just in front of the snippet you posted:
Better to check the article again, because you're missing the essence of it working :)
-
which php-part? didnt notice that..
no, i just used exactly the code you see above.
-
Did you also use the PHP part of the code?
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
How to use remarketing using GTM?
Hello Everybody, Can you please tell me how to use remarketing using GTM? I have read lots of post but confused with Google Analytic, adwords, merchant, tag manager, codes...etc. So can any one explain me properly? Regards, BK Mitesh
Reporting & Analytics | | bkmitesh0 -
Google Analytics shows most referrers as "Direct" -- What are some better tools?
Very often Google Analytics will show 50-90% of our referrers as (direct) which is not very helpful. Are there other tools out there that will provide a clearer breakdown of what other websites are sending us our traffic? Specifically, I want to be able to be able to tell who are the top traffic referrers to my top performing pages on my site for the last 30 days. (I want to be able to study this on a per-page basis.) Thanks in advance!
Reporting & Analytics | | Brand_Psychic0 -
Keeping Google Analytics Data when Moving to Subdomain
Hey All, Against my objections a client has decided to move an existing site into a subdomain while putting up a new site on the main domain. My question revolves around Google Analytics, how do I make sure that I don't lose historical data on the domain before it moves to a subdomain? We're going to be doing a redesign of the old site and I need to keep the historical data so I can prioritize content. What do I need to do? Or will Google analytics recognize the URL's and still attribute the data to those URL's or will I have a separate set of data based on the new URL (with the subdomain). Any insight would be appreciated! Thanks!
Reporting & Analytics | | EvansHunt0 -
Is there a problem with using same gmail account for multiple site analytics and GWMT?
Hi, Is there a problem or a general recommendation about using the same gmail account for two different sites (both in Google Analytics and Webmaster tools)? Thanks
Reporting & Analytics | | BeytzNet0 -
How do I manually add transactions to Google Analytics
We are seeing Google Analytic's drop transaction on our site so therefore all the figures are skewed. Is there a way I can manually add transactions to GA to cover the missing one?
Reporting & Analytics | | Towelsrus0 -
Where do I find Google Analytics link tracking for outbound links?
We implemented this script in source, where would I find the outbound link tracking; in Events?
Reporting & Analytics | | KnutDSvendsen0 -
Google analytics for your mobile sub-domain
Hi All, I have just started mobile sub-domain for my desktop site. But I don't to know how to configure analytics for mobile sub-domain. I want to track result between desktop and mobile site. Can any one help me to sort out this problem? Waiting for reply
Reporting & Analytics | | Hexpress0 -
Google Analytics censoring keywords?
The top keyword on our real time GA is showing as a blank. There's a topic of a sexual nature in our talk threads trending on Twitter right now which is driving a lot of traffic and I'm wondering whether Google have censored the keyword. The next few keywords are our name and variants of. Could there be some other reason why this word isn't showing up? Has anyone else experienced this?
Reporting & Analytics | | CecilyP0