I am integrating Google Analytics in my tumblr-Template. The Problem is, every time I visit the blog to see how it looks like, Google will count me as a visitor. I would like to avoid it.
So I need something Like this in my template:
{block:NotAdmin}
<#Google-Script>
{/block:NotAdmin}
I couldn't find anything useful on the tumblr-Site.
Any suggestions?
ps. I am visiting the blog from different IP´s, so Google-IP-Filter wont work.
Some possible ways to detect if a user is signed in: How to detect if a tumblr user is logged in?
Assuming you can get some form of the above code working, you can add a conditional to the _trackPageview call:
if (!logged_in)_gaq.push(['_trackPageview']);
This way, all the analytics code is still being loaded, but the pageviews are not being tracked when you're logged in.
Perhaps try Google's opt-out extension? A good thing to do would be to set up a new user within Google Chrome, and switch to this user whenever you want to view the blog.
Related
My problem is this: I'd like to differentiate Google Analytics between logged in WordPress users (people editing the site, editors) and people visiting the site (visitors).
I read through this article: https://css-tricks.com/learning-use-google-analytics-effectively-codepen/
It provides a basic explanation of how to add a dimension to GA. What I don't get is how to make line of code to add to my WordPress templates that will tell Google which users are logged in and which ones aren't.
If you can help, thank you!
The easiest way to do this is to populate the datalayer of your website with a boolean value (true or false) that determines whether someone is logged in or not. You can ask one of your devs to do this, but since you're using Wordpress there are quite some plugins that are able to do this (make sure you check the safety of these plugins).
After you've done that, you can now actually target these datalayer values in Google Tag Manager and create a custom dimension that you can in turn use for your filters and/or segments in Google Analytics. This guy explains it quite well on how to do this step by step.
This seems like it should be a rather important use case for GA events but I really couldn't find any instruction on the net.
I'd like to create an event for any new registrations on my Wordpress site. If I can append that to logins as well, even better but the former is more important.
I also use WooCommerce so I'd need to ensure registration through that code path is included as well.
I'm familiar enough with adding the GA event code, I'm just not sure where to place it in this instance. I feel as if this functionality should be baked into the platform or most plugins. Maybe it is.
I noticed the 'Google Analytics for Wordpress' plugin has a checkbox for adding tracking code to registration pages however I'm not sure what exactly that does on the GA side? Does it create events? Is this whole question therefore pointless?
Any help here is appreciated.
I noticed the 'Google Analytics for Wordpress' plugin has a checkbox for adding tracking code to registration pages however I'm not sure what exactly that does on the GA side? Does it create events? Is this whole question therefore pointless?
From what I remember, by checking that box you create a custom variable for Logged In Status. By creating a custom variable, you can then create segments off of that and look to see how logged in users use the site compared to non-logged in users.
However, if you simply want to track new registrations, you could add GA event tracking to the submit button when the user submits the registration form.
If I were you, I'd do both.
If there is a page they land on after registering then just register that page as a goal in GA. I get your intent behind registering it as an event, but it might be easier to just do it as a goal.
I use custom google analytics variables to track the user ID of the visitor.
What I want is to see which pages a user visits after he signups to my website.
To achieve this I try to create a custom report about which pages a certain user ID visits.
I can't get this to work, on the custom report system I cannot select the correct filters & settings.
I hope anyone here has experience in doing this and can help me in the right direction.
Google Analytics won't show you this information at scale. It might work for 1-2 visitors, but Google Analytics purposefully restricts you from seeing individual visitor details.
Your best bet is to use a software product so you don't violate any privacy restrictions.
I would suggest looking into Universal Analytics. Much more centered around users - http://online-behavior.com/analytics/universal
Is it possible to have a search form on every page of my WordPress site, in the header.php for instance, that contains a search form for Google Maps? When someone adds their postcode into the box they get redirected to the search results page which shows their results.
If so, does anyone know how this works or can anyone provide any code?
Many thanks
M
This is quite possible, and is described here in google's API. You can redirect the user using data gathered by your form, or you can actually even embed a map into your own webpage (which seems like a better user experience, and lets the user spend more time on your site).
I would like to track where users originally came from when they make a purchase on my site so I know which keywords are more profitable and which websites are best for advertising.
an example is a user is on my site with my google analytics tracking code which has details of where they came from, and then decides to upgrade. they leave my domain to go to my biller (2checkout) complete the purchase and return to my thank you page.
I have transaction code and analytics code on my thank you page and the transactions are showing up with the correct product/amounts in GA however there is no other data and in my reports the referring url is always my biller or a credit card companies authorisation page.
i can manually connect which customer is which by saving their referring data when they first come to the site and then matching it up after they make a sale, but I would like it to show up in my google adwords / analytics account where it is easier to manipulate the data and see trends.
if anyone can help me with this annoying issue I would be vbery greatful, but I fear I may end up living off reports I create and then matching them up with adwords manually :/
One thing you can do is have a click event trigger a custom variable. When the user clicks on whatever link that takes them to your biller, have the custom variable trigger with the information you want to carry over (like the current page URL, some campaign name, whatever). Specify the custom variable's scope as Session or Visit so that it get associated with the thank you page.
http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html
An alternative is to do campaign tracking:
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55540
That is more or less the same principle as the first suggestion, but with using specified URL parameters. Depending on how your pages are actually coded, you may need to push a virtual page view with the campaign code(s):
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55521