Cannot find AdSense Analytics code - google-analytics

It seems that after Analytics got their latest face-lift the AdSense / Analytics connection got a bit left behind.
According to the documentation I need to add the AdSense Analytics code to my page. I already have the regular Analytics code and it's working fine. According to Google help the code should be in the Edit AdSense linking settings link at the top of your account's Overview page. But it isn't. There isn't even an Analytics Settings link in the upper corner, just Settings and that takes you to Edit User Settings.
This is how my Admin panel looks:
Has anyone been able to find it? Where is it? (It's not under Tracking Code)

The adsense code for non-primary domains you can find in analytics. Click in adsense on link domains. Click Admin in the right corner. Click on the account. Click on data sources. Click on the adsense tab. There is the codesnippet for the secondary domain.

I'm having the same issue...
here's what I found out so far:
in Analytics, go to Account Home (this is the list with all your domains and profiles in GA)
from this view, click on "Admin" in the top right corner. (This is a different admin from what you get from inside an account!)
select your primary domain/account
select "data sources"
right below the first menu with Properties, Users, Filters, Data Sources, Account Settings, there is a second menu line with 2 items: Adwords and Adsense. Select AdSense
you should see a list of domains you can get code snippets for

Related

Tracking Drupal Roles from Google Analytics

I have a Drupal website with a few different roles. I can't figure out how to view the breakdown of those roles within Google Analytics.
Here is a screenshot of my GA Module in Drupal;
I want to get page views statistics broken down by a role or if they're just not logged in (that's an "anonymous user", right?!).
But I can't see where this breakdown is available to view in the Google Analytics webpage anywhere.
I am confident that I've got it hooked up correctly as I can see my tracking through different pages on my Drupal site. I just don't know how to break down by Role.
***** EDIT / UPDATE *****
I've done some further reading and it seems you need to do the following;
First go in to Google Analytics and navigate to Admin -> Custom Definitions -> Custom Dimensions. And then click NEW CUSTOM DIMENSION. Call it something like "User Roles".
Then over in Drupal, navigate to Custom Dimensions within the Google Analytics Module and do something like;
That text is small but it says [current-user:roles] - you can see a list of avaible inputs by clicking "Browse available tokens" further down the page. There are dozens of options!
Now I am playing the waiting game and hoping for this to take effect.
EDIT TWO;
Here is proof that the dimension is being set when inspecting the colsole log via Google Analytics Debugger (A Chrome Extenstion which seems really useful).
That's me, but logged out. And I get "Super Administrator" when logged in.
I seem to have solved this. So as well as the screen shots and information above this is basically the steps to get Google Analytics working with User Roles on Drupal.
Once you've installed the Google Analytics Module on Drupal, make sure you go to "Roles" and select all user types
Go to Google Analytics and navigate to Admin -> Custom Definitions -> Custom Dimensions. Click "NEW CUSTOM DIMENSION" and add a custom dimension called "User Roles".
Back in Drupal, navigate to Custom Dimensions within the Google Analytics Module and add "[current-user:roles]" to the Value field for the "1" index number key (see OP for more info)
In Google Analytics, navigate to Behaviour -> Site Content -> All Pages and where is says "Secondary Dimension" (with a dropdown), select the dropdown, select Custom Dimensions from the dropdown, and select User Roles (if it's not there, this hasn't worked for you for some reason). But that should load the screen something like;
Hope this helps.

Enhanced link attribution in Google Analytics In-page Analytics not working

Has anyone been able to use and see the Enhanced Link Attribution data in the In-Page Analytics interface of Google Analytics as per this document?
http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867
I've implemented this plugin and call and I can see the data being transferred to GA in my __utm.gif call however when viewing the In-page Analytics of the site, there is no difference. I still see the clicks being shown in an aggregated standard form.
I'm curious if there is a piece missing and I need to enable some Advanced Segment filters or something to view the information.
There is a thread on Google Groups where people shared similar experience with the implementation and my observations are the same:
http://productforums.google.com/forum/#!searchin/analytics/enhanced$20link$20attribution/analytics/-FuKG8ARAPY/t-crCmrGEHsJ
Any help or insight would be highly appreciated! Google seems to be on mute as usual.
To solve the problem, I had to manually put a unique 'id' attribute to each link tag pointing to the same URL that I wanted to distinguish. The scope is the page so you don't need to worry if the same IDs repeat on different pages, they just need to be unique per page.
I used a naming convention that allowed me to have unique IDs and not to worry about duplicity, unless there were two links to the same URL within a section (in my header I have the logo and the home navigation link go to the same URL).
For example, in my site template, all header links use id="header-...", all links in the footer use id="footer-...", and all links in the body of the page use id="body-...".
Example:
Home
<img src="/logo.gif" alt="logo" />
go to homepage
Homepage
This has made the percentage in GA show different values for the same URL, which solved the problem. Nothing else I tried in the settings, or initializing the enhanced attribution plugin, did not work.
This was just announced:
http://analytics.blogspot.co.il/2012/11/announcing-enhanced-link-attribution.html
You'll need to enable enhanced link attribution in the web property settings tab (within the Admin section), which is rolling out - you may see it only in a few days/weeks.
First : Go to Analytics. Click "Admin" in the top right for the selected web property. Property settings tab > In-Page Analytics heading > Use enhanced link attribution = Tick checkbox.
You might also want to narrow down the date window to the last few days when looking at the data (after allowing 24 hours for it to come in). If you don't do this, the link-attributed data might get diluted in the standard "last 30 days" window.

Multiple links pointing to the same location. Track which one was clicked using Google Analytics

I'm trying to get Google Analytics to track the specific link in the page that was used by the users to get to a specific location.
Say I have links poing to the contact page from the main menu, the page's contents and the footer.
Looking at what other websites are doing, I've added references inside GET parameters for each of the links like so: http://www.example.com/contact?ref=menu , http://www.example.com/contact?ref=content and http://www.example.com/contact?ref=footer . I've also added the ref parameter to the ignore list inside Google Analytics so the three URLs are not tracked as separate pages.
My question now is: How sould I go about tracking which one was used to get to the contact page?
Although the post is a bit old, for others like me finding this via search, here is the solution. Enhanced Link Attribution in Google Analytics.
http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867
Sounds like you are already tracking them with the URL param.
If Google Analytics is successfully tracking them as separate pageviews with the ref= URL param, then you could create a custom report in GA that shows the number of pageviews. The custom report can be added to your dashboard for quick reference.
The custom report can be set up like this:
Metric groups: pageviews
Dimension drilldowns: page
Filters: include -> Page -> regex -> /contact\?ref=(content|menu|footer)
Or, for each click, add the following to each link:
Contact
Contact
Repeat for each link. This is no more work than adding a ref= to each link.

Tracking external ad links with Google Analytics

I am using _trackPageview() to track external links for my ads. But where in my Google Analytics dashboard can I find the tracking information? I checked the Google Doc information, but it doesn't say.
You can find them under "Top Content Report". Here's what Google says about this:
To verify that _trackPageview is being called correctly, you can check your Top Content report 24 to 48 hours after the updated tracking code has been executed. You should be able to see the assigned page name in your report.
See http://www.google.com/support/googleanalytics/bin/answer.py?answer=55529 and http://www.google.com/support/googleanalytics/bin/answer.py?answer=55527

How come I can see nothing about the ecommerce from the Google Analytics admin site

Here's the script for tracking the ecommerce on my site, http://gist.github.com/452437 , I tried to do the purchase for several times, but I don't anything happened on https://www.google.com/analytics/reporting/ecommerce , I double checked the script for several times and I can't see anything wrong, could somebody help to point out what the problem is? Thanks a lot
Well, let's deal with the easy case first--have you designated the Site as an Ecommerce Site from the GA Admin Interface (the default setting is "no")?
(Obviously, you can ignore the first few lines here if you only have a single GA Account and a single Profile under that Account.)
Login to GA, then select the Account from the menu in the upper right-hand corner, then select the Profile from the menu to the left.
The next page will show you a list of Reports from the Profile you selected. Find the one you want, and click "Edit", which is at the far right on the same line as the Report you chose.
The page you'll see now has a section called Main WebSite Profile Information (on a line with a grey background). This section contains two columns, which are keys (column 1) and values (column 2) of the Profile Information.
The sixth row in the first column is Ecommerce Website. Check the value (column 2, row six)--is it "No"?
If it is then click "Edit" to the right and on the same line as WebSite Profile Information.
The third item down is "Ecommerce Website" below which are two radio buttons--check "Yes, an Ecommerce Site"
Then click "Save Changes" at the bottom left of that page.
Cause some Ecommerce activity--anything that will show up in the GA Browser, then wait four hours for the GA Server to update and see if it's there.

Resources