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 better track subdomains in Google Analytics?
Hello Everybody! so I am setting up a website that will have several subdomains, based on the language of the site, for example: site.com; es.site.com; fr.site.com... How should I trace this is GA but having attention that I should be able to see visits as a whole and also if I want I should be able to see visits per subdomain, anything on specific I should do when creating the account? And after creating the account, how to separate that accordingly? 🙂 Thank you all!
Reporting & Analytics | | NelsonF0 -
Mobile Text message about Intelligence Alerts (Google Analytics)
Mobile text message service for Custom Alerts that set up under Analytics Intelligence is available in all countries worldwide? Is it True or False? Can you please explain me..i am confuse about this answer.
Reporting & Analytics | | CommercePundit0 -
Rankings UP, rankings DOWN - why?
Last week, I had 14 keywords go up and less than 5 go down. I was so thrilled! Except this week, I had 10 go up and 14 go down! How can I figure out what is going on? I am up and down 30+ spots with Google. I'd really like to stay up. My site is pretty new, just a few months. I am still fiddling around with settings trying to follow all the advice I read. (robot meta tags, title tag) I didn't change any content in the last week. Does SEOmoz analyze the ranking data?
Reporting & Analytics | | dealblogger0 -
Best use of Keyword Rankings report
is there a guide for getting the most out of the keyword ranking tool? I currently have 250 or so keywords, some move up, some move down on a weekly basis but generally trend up. That's about as much info as I gain from it though. anyone got any good tips? thanks
Reporting & Analytics | | benj450 -
Totally Remove "localhost" entries from Google Analytics
Hello All, In Google Analytics I see a bunch of traffic coming from "localhost:4444 / referral". I had tried once before to create a filter to exclude this traffic source, but obviously I did it wrong since it's still showing up. Here is the filter I have currently: Filter Name: Exclude localhost
Reporting & Analytics | | Robert-B
Filter Type: Custom filter > Exclude
Filter Field: Referral
Filter Pattern: .localhost:4444.
Case Sensitive: No Can anyone see what I'm doing wrong and give me a push in the right direction? Thanks in advance!0 -
Image Search Keyword Tracking With Google Analytics
Does anyone know how to track keywords for your images in Google, Yahoo, Bing (/imgres)?
Reporting & Analytics | | Melia0 -
Custom Variables to track Vimeo plays on website with Google Analytics?
Hello Everyone, I'm trying to track how many times a Vimeo video is played on my site via GA. Does any of you have any knowledge of how can this be achieved? I've read the documentation and came up with this: After the iframe embed i insert this: Of course the GA is loaded in the header. Does not work, at least i cant see anything in analytics. I have set up the segment as per the attached image. Thanks in advance! Alex E6XnO.png
Reporting & Analytics | | pwpaneuro0