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
-
I'm a beginner with Google Analytics, what is a good place to start?
I'm a beginner with Google Analytics, what is a good place to start? Would love to know some simple ways to set up Google Analytics to keep SEO in check. What are some of your suggestions? How would you go about using GA to do this? and what are the alternatives? Thanks!
Reporting & Analytics | | Eric_S
Eric0 -
Google Analytics View Filters
Using the same GA property, I would like to set up three filtered views: 1. Tracking across one subdomain and one primary domain (example: shop.example.com & example.com) 2. Track only primary domain (example.com) 3. Track only subdomain (shop.example.com) Can this be achieved by using view filters? If so, how do they need to be set? Also, according to this article: https://moz.com/blog/cross-domain-subdomain-tracking-in-google-analytics, with cross domain tracking, I need to ignore self-referrals, which can only be done at the property level. If set up to ignore example.com referrals, will this cause problems with filter 2 and 3?
Reporting & Analytics | | Evan340 -
Google Analytics Average Position
I'm looking at Google Analytics -> Acquisition -> Search Engine Optimization -> Queries reports. I'm looking at keywords and the average position. What Google reports and what I see in a Google incognito search is different (usually my search is much lower). For example, for one search term, Google reports 5.8 average position and every time I search it is 8. My local result is 4. Anyone know why this is? I'm wondering if Google is averaging the Local results into number?
Reporting & Analytics | | CalicoKitty20000 -
Google analytics question
Ok so in my traffic sources break down I have 3 sections: direct, organic, and referral. My question is under the referral tab I have recently noticed a new traffic source, my own website.... How is this possible? My top referring site is my own website.... Is this considered direct traffic or how is this being traced?
Reporting & Analytics | | jameswalkerson0 -
Google analytics reality check?
Looking back over a 9 month period tracking analytics with getclicky my site showed a 29% bounce rate, with only about 1/4 of visitors spending 1 minute or less on my site. I've recently implemented GA (removed old clicky code) and although traffic is strong, my site now shows a bounce rate of about 82%. Engagement stats also show that 82% of visitors spend between 0-10 seconds on my site. My site is built on Wordpress and the GA tracking code wasn't placed directly in the footer, my developer built a field in the admin area to insert the UA number which automatically adds the code to all pages. I've checked the code and the tracking seems to appear on all pages. I took a look at AW Stats. It corroborates GA and says that 80% of visitors are spending 0-30 seconds on the site. Potential issues/clues: browser tests show small loading problems in Internet Explorer 7,8,9 (the phone number at the top of the header loads on the wrong side of the page) and major issues in Internet Explorer 6 (site doesn't load at all in IE 6). The thing is no one who uses IE 6 is coming to the site. Second, the site gets a grade of C in YSlow, it's not lightning fast at the moment. GA is showing average page load of 2.4 seconds, but don't think either of these issues should cause an 82% 0-10 seconds engagement number. My site is content rich/focused with very minimal advertising. Content is accessible well above the fold. My question: Does the fact that AW Stats and GA agree mean that those numbers are accurate, or is there a bug I should be looking for? How to explain the clicky numbers?
Reporting & Analytics | | JSOC0 -
View entrance keyworsd for a subpage in google analytics
I have an element from ringcentral that is tracked by google analytics, yet for the life of me I cannot figure out to how to view the entrance keywords to that element. I can view the search metric and see which keywords and how many visits from each keyword onto the site in general, but how do I see which keywords were actually responsible for this 'click to call' code which has GA? I can see the total number of clicks into that code, but not which keywords led to it.
Reporting & Analytics | | ilyaelbert0 -
Google +1 and ranking effect .
Anyone have any experience as to what effect google +1 has on ranking? Trying to figure out what impact it might have. Ecommerce site in norway selling childrens clothing. Atm we are ranking 25th for main targetted word childrens clothing (barneklær in norwegian). on google.no this has a difficulty of 34. None of main competitors have any amount of google +1's on their site. Lets say if I in some way could manage to get 100 ppl to push +1 button. Would this affect our ranking at all ? Might be impossible to answer but if anyone has thoughts about it I am interested. Thanks
Reporting & Analytics | | danlae0 -
Track Individual Organic Orders In Google Analytics
I was wondering if there is a way to track information about the individual order in google analytics. Currently I can see all of the organic traffic, rev, transactions, etc, but I would like to be able to know what those individual order numbers are, as well as be able to place test orders to see if organic tracking is correctly working. Does anyone know of a good blog walkthrough for this, or have any suggestions? Thanks (again individual organic order data not all data from a specific search engine or keyword).
Reporting & Analytics | | Gordian0