The Simplest Filtering Method to Exclude Traffic from Your Internal Computers in Google Analytics, No IP Address Lookup!
99Don't spend time trying to analyze your Google Analytics traffic until you've followed this simple guide to excluding your own traffic from the analytics results. When your web site has relatively few visitors, your influence as the author of the web site on the traffic statistics may make them nearly meaningless.
In about one minute you can follow these easy instructions to ensure that the traffic you see in Google Analytics is an accurate representation of the visitors that you care about. You will not need to download any software or browser plugins and you can follow the instructions in the web browser of your choice.
Google Analytics traffic filtering is applied for any new traffic coming in, so your existing statistics will not be changed. If you decide to start another web site, remember this advice as a first step to keep your traffic graphs clean from the start.
Update: Our easy commands below have been updated to support the recently released Asynchronous Analytics tracking. - Jan. 27, 2010
Part 1: Give your computer a name
The first step to excluding internal traffic from your web site traffic stats is to give Google Analytics something unique by which to identify you.
- Go to any page on your web site that uses Google Analytics tracking. If you use HubPages, you can follow these instructions without leaving this page!
- Copy the entire one-line code below and paste it into your web browser address bar, entirely replacing the current web address. You may need to retype javascript: at the beginning of the URL after pasting.
- Replace Unique Word near the end with any word of your choice, always use the same word to avoid having to make changes in Analytics.
- Once you have changed the code, press the Enter key.
- If your unique word appears in a popup box it has been successfully set.
- Repeat these steps on all of your sites that use Google Analytics, once per domain (i.e. only once for all of your content at hubpages.com, and once again for yourwebsite.com). If you use multiple web browsers, these steps may need to be repeated in each.
javascript:void(function(w){try{_gaq._getAsyncTracker()._setVar(w)}catch(e){try{__utmSetVar(w)}catch(e){pageTracker._setVar(w)}}alert(w)}('Unique Word'));void(0);
No popup?
Recent browser updates may disable the ability to run this code from the URL bar. Try these instructions instead.
Firefox: go to the Tools menu > Web Developer > Web Console. You will see a > with a blinking cursor beside it. Paste the code in the article then press the Enter key. To close the console, hit the x button at the top of the console panel.
Chrome: click the wrench icon then select Tools > Javascript Console. You will see a blue >, click in that area and paste the code above. To close the console, hit the x button at the top of the console panel.
This code tells Google to store a specific word on your computer that will identify you when you are browsing your web site. Don't worry, your unique word can't be seen by sites other than your own.
Troubleshooting
If you experience an issue with the code above or with your traffic filtering, please post a comment below and the author will be glad to help. Be sure to read other recent comments to see if your problem has already been reported and to try potential fixes.
As web browsers adapt to new security and usability standards, some of the technology required for this script may become outdated. If your issue is not solved in the comments or in the blue box to the right, please report it with as much helpful info as you can gather.
Part 2: Tell Google Analytics to filter out your traffic
The Google Analytics Filter Manager is a very powerful tool for filtering your content. The Filter Field dropdown which you will see soon lists all of the different traffic identifiers which you can use to customize your Analytics reports.
- Go to the Google Analytics Filter Manager (you can always find a link to this page at the bottom of your Analytics homepage)
- Click the + Add Filter link which is located at the right of the gray bar.
- Type a filter name, something like My Traffic or Author Filter.
- After Filter Type, select the Custom Filter option.
- In the Filter Field dropdown, select User Defined (near the top of the list).
- In the Filter Pattern text box, type the unique name that you used in Part 1.
- Finally, in the Available Website Profiles list, select your web site address (i.e. hubpages.com) and click Add » to move your site to the Selected Website Profiles list. Repeat this step for each web site that you track with Google Analytics.
- Click Save Changes at the bottom of the page.
This simple setup will allow you to exclude yourself from your Google Analytics statistics whenever you visit your web site from your home computer. If you ever switch computers, just follow the steps in Part 1 using the unique word that you've chosen to filter.
How to Check If Your Browser is Filtered Out
If you are not sure whether you set a unique word or do not remember what it is, try these simple steps:
- Go to any page on your web site that uses Google Analytics tracking.
- Copy the entire one-line code below and paste it into your web browser address bar.
- No changes are necessary, just hit Enter.
javascript:alert((/__utmv=.+?\.(.*?)(;|$)/.test(''+document.cookie))?RegExp.$1:'No unique word');void(0);
IE 9 Users
IE 9 will remove the javascript: portion of this link when you paste it into the address bar, you will have to type that portion manually.
Your current unique word will appear in a dialog window which you can then close. If you see a different word than you set up in Part 2, you should follow the directions in Part 1 to apply the correct unique word. If you still see the wrong code after following the directions in Part 1, clear your cookies and try again - a previously set unique word cookie may be overriding your new setting. Be sure to do this step in each web browser that you use since the unique word may or may not be shared between browsers.
Translations of this article
Thank you to those readers who have taken the time to translate these instructions, your work is appreciated!
- La forma más simple de eliminar tu propio tráfico en Google Analytics (Spanish)
- Comment exclure vos propres visites des stats de votre site ou blog en moins de 5 minutes (French)
If you have written or found a different translation, please post it in the comments.
Why is This the Easiest Way to Exclude Myself from Analytics?
Unless you have read other articles already and tried to exclude yourself from Google Analytics, you may not appreciate how much simpler this is.
- You can use the same unique word on any computer without ever returning to the Google Analytics Filter Manager.
- You do not need to modify any of the code on your existing page.
- You do not need to look up the IP address for your home network and all other places where you want to browse your web site.
- IP addresses, the codes that uniquely identify computers and home networks, change often and without warning; your unique word will not change.
- It works with both the old and new Google Analytics and Urchin tracking code.
Automatically identifying multiple authors
If you have multiple authors, you can make a simple addition to the HTML code of one of your author-only pages which will automatically add your unique code whenever they sign in. By making this change you can avoid contacting your entire writing staff with the instructions above while still ensuring that they are not tracked.
- Add the following snippet to your HTML code, it can appear anywhere on the page.
- Edit the UniqueWord to something meaningful, such as "authors"
<script type="text/javascript">
setTimeout(function (){var s=function(v){
try{_gaq._getAsyncTracker()._setVar(v)}catch(e){
try{__utmSetVar(v)}catch(e){
try{pageTracker._setVar(v)}catch(e){
setTimeout(function(){s(v)},500)}}}
};s('UniqueWord')}, 500);
</script>NOTE: In order for this code to work, the Google Analytics code snippet must also be included somewhere on the same page, before or after the above code. Some admin systems such as WordPress may not include analytics tracking on administrative pages. While it may seem counterintuitive, you may need to paste your Google Analytics code snippet into the admin page as well in order to make the above code work.
Ignoring all visits to your hidden page
Your first visit to this author-only page will still be logged in Analytics. In order to prevent that, you can create a second filter in Analytics following the instructions above but instead filtering on the field "Request URI." For this filter, if your hidden page is at www.mysite.com/path/to/hiddenpage.html you would type "path/to/hiddenpage.html" as the filter pattern. That should prevent all of your visits to the hidden page for the purpose of installing the code on a new computer from being tracked.
Multiple user class segmentation, alternative to exclusion
If you have multiple authors, you may want to track their activity as well, just segmented out from normal users. This is also very simple to do. The instructions below will create a new Website Profile for your staff which you can access from the Google Analytics homepage.
- Go to the Google Analytics Create a New Website Profile page (you can always find a link to this page at the bottom of your Analytics homepage)
- Select Add a profile for an existing domain.
- Choose your web site from the dropdown list and name the profile something distinguishing, such as Blog Co-authors.
- Follow the instructions in Part 2, but change the selection below Filter Type from Exclude to Include. This will exclude any traffic that doesn't match your unique word.
Reader Feedback
Are these instructions easy enough?
See results without votingLearn more about Google Analytics
This does not appear to be a valid RSS feed.vote upvote downsharePrintflag
- Useful (19)
- Funny
- Awesome (4)
- Beautiful (3)
- Interesting
Reader CommentsLoading...
Thank you! So helpful :)
Thank you for this - I had excluded my IP in analytics when I first started on HubPages, but never thought to add my other blogs into the filter when I created them.
Your directions were very simple to follow - thanks.
Now I just need to figure out how to USE analytics!
great tips...
Forgive my techie ignorance - do I need to do this only on my home page to stop Analytics counting me when I view every page on my website?
Add ;void(0); at the end of each command to make it work on firefox+ MAC OSX see: http://www.javascriptkata.com/2007/05/01/execute-j
Is there any way to put these commands inside an html page (on the FTP space)? This would help excluding myself from all the computers I use. Thanks in advance
Thanks for sharing, it´s simple and nice tip!
thanks that was so helpful as I am just starting out and I am very suspicious that the views recorded were just me
I am a beginner about internet. Your article really helpful for person like me. I appreciate your writing. I have followed your instruction and done it. It work. Wonderful. Big thanks!!!
When I pasted the javascript, I did not have a pop-up window appear. I am using firefox, if that affects results.
Thanks for this info - it was super simple!
nice...googling for "analytics dont count me" and find this article. Thanks fritteritter.
Is it supposed to be still working? Trying to check if my browser is filtered out, I keep having a popup showing the value of __utmb instead of __utmv.
Thanks much fitterritter. Fantastic tip.
I presume I have to be sure not to delete this cookie if I were to clean cookies from my computer? If this is correct, how do I now identify this cookie on my computer? I found one cookie name in reference to my site in my Temporary Internet Files folder, but in reviewing the text within this cookie I don't know if this is the one I'm looking for. It's text has reference to utma at the beginning and utmv at the end with a lot of numbers and my domain url in between, but I don't know if this is it. Thanks.
I'm afraid I don't understand where this __utmv cookie exists and the text content of the one file related to my site doesn't have the information you presented "...2378623;__utmv=21376324.UniqueWord;__utmb=..." BUT, I did get the pop-ups with my unique word displayed with IE7,FF3.5x and Safari and then the confirmation pop up when I visited a different site page, so I guess I'm OK. I'm running a test on a specific web page and will check GA tomorrow to see if my visits were in fact excluded. Thanks for the CCleaner mention.
Hello there,
Thanks for the information, quite helpful in terms of being able to filter the Analytics code, but i came to understand one can configure the anlytics account to monitor the hubpages, how does that work?
As i am usually aware on how to implement the code onto any webpage, not the other way round!
thanks filter, i tried it as explained, but hubpages shows that the code is set, and google analytics shows the code as not installed.
and i am just not sure where i got it wrong.
You were right, it just a degree of patience that was required in this instance, its eventually started picking up the traffic hours later. thanks
Found this post to have the simplest and clearest instructions and saved me some time, thank you.
Please excuse second post. This all works well, until i clear cookies. Not wishing to copy and paste the unique word into the browser each time, i tried to add the 'automatically ID multiple users' code into the .../wp-login.php page but after showing the page and logging in, the cookie is not there. What am i doing wrong? Would be nice set it and forget it. thanks already for any help!
This is simply amazing! So easy to implement, and easily the best guide for excluding yourself from Analytics to be found on the Internet... Thanks ;)
Hey fritterritter
This was clear and succinct, I was done in a few minutes.
I just wanted to check something tho: my wife and I share a blog, I followed the instructions above for our main shared device at home, however it is likely I will also access our blog from work and we both have mobile devices (iPhones) do I just reuse the UniqueWord on both my work station and our 'phones?
Cheers
Stu
Just put into action!Works great for me!Thanks pal, your the man!
I have followed your instructions to the letter and it does not work :( Could this be because I am using the latest asynchronous google analytics code released a week or so ago and there is some sort of conflict?
How do you exclude your mobile device(Iphone)?
Thanks
I have done this to the letter as instructed, and it doesn't work for me. The only popup is one that says "nul" and when I run the code to check for the computer name it, of course, says none entered. Do I have the same issue as jhamill in the post 9 days ago?
I'm running IE 8 on xp pro, my site is built using xsitepro2 and runs GA in the global code.
Would LOVE to get this to work as I'm spending at lot time working on my new site and, hence, skewing all the analytic data. Will check back regularly to see if you've posted new code. Thanks for sharing the work you've done so far!
Something made me go back and try this again. IT'S THE POPUP BLOCKER!!! I always manage to miss that thin grey info bar at the top! This will probably solve jhamill's issue also.
After I clicked on the "temporarily allow", I went back and re-entered the code (it didn't work when I just unblocked and then hit refresh icon. And presto! There it was!
You might also want to go into Tools>Popup Blocker>Turn Off before starting this process, but fair warning, that only worked once. When I tried to continue the process the popup blocker bar still came on and I had to click the "temporarily allow" line (MS is presistent in its ways).
I went through all the other steps, everything worked fine and checked out. I will now wait for a day to let GA catch up.
Anyway, I hope this helps some of those that were having problems.
Great code, great solution! Thanks so much for sharing it, fritteritter!!!
Unfortunately this doesn't resolve my issue as I always could see the pop up:(
Dany, it would be great to run some tests with a temporary page etc and confirm that this solution really does prevent the recording of your own visits etc.
my link is www.localcomputerfix.co.uk, using IE8 although I think I have tried it with Firefox some time ago as well.
Thanks for looking into this mate. Much appreciated.
Yes, I checked the second javascript command and my word came up as it should.
However I did check in my cookies folder (I am using windows 7 at %userprofile%\AppData\Roaming\Microsoft\Windows\Cookies in windows explorer) and I can't see anything in there. Perhaphs I am looking in the wrong cookies folder?
Great news, my visits are not recording. Perhaps it was just one of those things where you spend so much time double checking to make sure you get it right, you then inadvertantly undo all of the work that was correct in the first place.
And I found my cookies too. Thanks for your help
Hi Fritteritter!
Thank you for your good job. It's easy, simple and effective! Your method is clear and that's very cool.
Thank you a lot
Sam
I followed these directions, but had to re-enter this for all my browsers, as I have to test my site in many. When I ran the check code, it came back "No Unique Word" in browsers other than FF (Mac) which is my default.
Is this normal?
Cheers, Mary
Thank you so much .. You Rock!
It IS really the easiest. Thanks.
damn you know how to explain. Super simple. thanks
I want to Thank You so much for these Instructions!!! I don't know a lot about codes and the like, and although google gives explicit instructions, sometimes my brain is too full to pay attention until the end. Thank YOU!
nice hub.
Excellent! Thank you. Much easier than other methods I read about in Google guides.
This is seriously helpful and easy to follow (even I could do it!) Thanks so much!
This is such an excellent hub, thanks a lot for this information. One thing I did not see is that I believe that if you use different browsers e.g. for testing, you need to do this in each of them.
Thanks a lot again.
Great tip. Thx
After three months, I re-excluded after a needed cookie clearing. Worked like a charm and didn't have to disable popup blocker this time!
fritteritter, you're the man! Thank you!
how long does the cookie last?
Hi - Thanks for the article: it is the best explanation I have found of how to achieve this. One comment:
In the "How to Check If Your Browser is Filtered Out" section, can I suggest that you highlight that you have to be on the website that you are monitoring, before pasting in the "javascript:alert..." text.
From trial and error, I realised that this is not something that you can copy in simply from the browser: you have to be on the page in question. I know that will sound obvious to some, but it was not from the article.
Hey fritteritter
I have implemented this on the three browsers that I use, and all seems great. Now I want to direct other people to do this too, but as they are less technical I want to send them to a link.
The link 'http://www.lula-isandla.co.za/index.php/remove-fro includes the identify-authors script with my unique word. However, after visiting that page, and then testing for the unique word, it doesn't appear.
Any ideas? It is a joomla site, but the script is included in the head tag. Is that a problem?
Thanks.
Awesome. Thanks for the response. Implemented and working! Super rad.
Hello Fritteritter.
I used your solution in IE 8, Chrome and Firefox. When I put the code and click on "enter button" a window with my unique word appears in all the browsers. Then I check if a cookie has been created to be sure that the solution works. I see the cookie _utmv in Firefox only and I can't find it either in IE 8 or in Chrome. What does it mean? That the solution doesn't work in IE 8 and Chrome?
Fritteritter everything work well. Thank you very much. I wasn't on the same site in each browser when I pressed on enter. Now I see the cookies.
Dude you rock! I've been through other goog search results and yours is the best. Hope my comment adds up to all the others helping you rank. Thanks!
OK, i hope this isn't to dumb of a question, I'm really new to this. If I did the above, and then went to another site that had a link back to my site, for example if i went to Hotfrog dotcom and clicked on a link there, that went back to my site, would analytics count that or not?
I hope that makes sense
Thank you
Thank you for your fast answer. I will be trying this filtering method. Thanks a bunch!
Great tutorial! Thank you so much! I was able to fix this problem on my blog while begin totally brain-dead - you made it that easy.
One question - this worked on my blog but not on my website (knitfreedom.com).
I use GoDaddy. Are there any cases where this doesn't work? It just didn't seem to save the unique word (and the browser test returns "No unique word."
I appreciate your help!
I bookmarked this a while back intending to tackle it when I had plenty of free time. Well I finally did and it took less then 5 minutes. Your instructions are excellent and easy to follow! thank you
Did this process several months ago, worked great! Had to remove and reinstall Firefox today. Went to repeat this process. Doesn't work -- I get no errors, but no box either. Fails in Chrome also. But it does work in IE. Any thoughts?
Hi fritteritter. Yes, I track 5 websites with Google Analytics. I have not touched the analytics code in any of the 5 sites' pages. It's so puzzling that this simple line of javascript is happy in IE, but not in Firefox & Chrome on my computer. Is there something I can try to help troubleshoot this better? If it would help, you can reach me at lrockwoo@twcny.rr.com
I am trying to install this code on my hubpage profile page. Nothing happens when I hit enter. Absolutely nothing.
I tried on other pages, other hubs of mine - still nothing.
I am set up for Google Analytics but this does not seem to be working.
Any ideas?
Thanks for this. After reading up on other methods, this IS really simple. 'preciate it!
very useful. one question though, what happens when i clear all my cookies? does my computer still retain the word or is it cleared?
Thank you very much. It made the process very simple.
Great post, very simple
Hi fritteritter,
I installed this on my site by adding your javascript to by tag using the onload function on a separate html page for myself and my family to access:
I also included my GA asynchronous tracking code just before the tag.
When I access this page, I get the popup with my unique word to confirm that it worked. The cookies are definitely there and when I use the second javascript to test for my unique word, it is always successful.
However, my visits to my separate html page are still being tracked no matter what I do, whenever I need to access it from anywhere else other than my own computer, like university computers etc.
Is this supposed to happen? Or does this method not work for for non-hubpages web sites?
Thanks!
Thanks so much for that fritteritter, I do believe that is exactly what I was looking for, much appreciated!
I got your code to work with IE Version 6.0.29020,...paste the first line of code, popup with "InternalComputer1", then paste your second line of code, and popup "InternalComputer1".
Then moving over to Firefox 3.6.15, ...paste the first line of code, popup with "InternalComputer1", then paste your second line of code, and popup "admin". I have tried this several times with both my computer and laptop with the same results. I am not adept enough at cookies to know what is going wrong. Thank you in advance, and sorry if you have already answered this. I
You were correct, there was a cookie saved for "admin" and for some reason the code was not changing it. After deleting the cookies associated with the website, the code worked flawlessly. Thank you. I appreciate you sharing your knowledge with us!
Thanks for this easy to follow (and implement) advice
Great hub with useful info.
Thanks so much for making it easy to understand. Much easier than Google!
I tried it on my iPhone and when I paste the code in, I get a message that says:
Safari cannot open the page because the address is invalid.
What should I do?
Hi,
I used this code and it worked perfectly the first time, but since then I have changed my website address (I have a tumblr) and decided to redo everything. However, every time I follow the instructions now, my cookies override all of my unique words! I have tried clearing my cookies multiple times, but whenever I reenter a unique word all of the cookies reappear again and override whatever I post.
For example, I will address one unique word x to page A, then another unique word y to page B. When go back to page A to see if the unique word x stands (I type in the code to check for "no unique word") the unique word is B's unique word y. This is even after I have cleared my cookies! It's like once I enter ANY type of unique word, they all reappear again.
Sorry for the rambling, I'm just really frustrated because all of my internal data is showing up on my Analytics page again! Otherwise, this code is very useful. Any insight would be greatly appreciated!
- M
Valuable tips! Thanks fritteritter!
Hi Fritteritter
Thanks a lot for such clear explanations
For some reason it doesnt work for me
The script was run successfully but my traffic is not filtered out in google analytics. I did some additional checks such as:
a) verification script show unique word properly
b) cookies contain unique word
c) i have crated custom report showing my visits and it contains nothing
can you please help me
additional information
not sure if it is ok or not but cookies contain 2 hosts related to my site 1) www.mysite.com 2) mysite.com
all utm variables are put into 2nd section
thanks!
Thanks for helping fritteritter
Confirm all above
I have made another check. A report was created without filter with the dimension set to "User defined value". The report shows the only record with value = "(not set)"... seems the unique word is not fetched from my web page
Yes I have
During the last report run I temporary switched the filter off since I was trying to see my visits which are aimed to be excluded by the filter
Thanks for your help fritteritter
The cookie has been set up on the page for about 3 days. I will try it again
yeah
it was an adblock in chrome
probably it should be added to your useful post as i beleive i am not the only victim :))
o yes Thanks for helping fritteritter
Did you know that a new version of Google Analytics V5? I wrote in my hub about this story, please read
Hi again fritteritter, how are you?
Your code has been working wonders for me. So far I have been using it on Windows XP and Windows 7, browsers Chrome and Firefox but I just encountered problems with Safari on my iPad iOS 4.3.3 today.
As per your other comments on Safari here, I have checked my Safari settings, Javascript is on, accept cookies is set to always. And I have also cleared my cookies and cache and switched off the popup blocker.
But whenever I load my hidden page with the code installed on it in Safari, I do not get the usual pop up that shows my unique word. And I have run the Javascript test with the hidden page and I keep getting no unique word.
I cannot seem to set a cookie with Safari and yet I am not sure why since this code is supposed to work with Safari too.
Am grateful for whatever assistance you can lend!
Thanks again fritteritter!
You're the best fritteritter :) Worked like a charm.
Although there is no popup with my unique word upon loading the hidden page, a quick check with your Javascript test shows that the unique word is there.
Thanks once again!
Thanks so much for this explanation, it is far simpler than Google's method - and, unlike Google's method, it works!
I just have one question. I chose to follow the instructions you gave under the heading 'Automatically identifying multiple authors' and it's working nicely. I notice that the cookie lasts for 2 years - which bit of the code should I change to make the cookie last longer? I'd like to set it to last for 10 years, if that's possible.
Thanks so much for your help,
Sarah
Thank you SO much, that works perfectly! (I use the new style code)
Sarah
Hi Fritteritter,
Great post and tips. I have been using your code successfully now for quite some time without any problems.
I am not sure if it is just me though, but since upgrading to IE9, I can no longer use the javaScript code to check if my cookie is set. Instead the browser tries to load the code pasted into the URL as if it were a page.
Has anyone else got the same problem, or is it that something isn't set right on my browser?
Thanks.
Brendon
Thanks so much for this Fritteritter! I set the script some time ago on Safari and Firefox and it works beautifully.
However - I've just installed Chrome and I can't get it to work. I run the script and get the correct response, then I run the check script and it responds with "No Unique Word".
Is it to do with the ad block mentioned above? I can't find an adblocker mentioned anywhere in the Chrome prefs.
OSX 10.6.7
Chrome 11.0.696.77
Thanks for that. I can confirm that "Allow local data to be set (recommended)" is selected and "Ignore exceptions and block third-party cookies from being set" is unchecked.
I've even added an exception "[*.]paulhardycarter.com" set to "Allow".
No joy...
Okay... this is where you see my embarrassed face...
I was using the wrong script. All's well now.
I'll get my coat...
Thanks a lot for the How To ! I always wondered how to exclude our team from Analytics :-)
Thanks for the response fritteritter. You were 100% correct. Typing "Javascript" by hand sorted the issue out for me.
Hugely appreciate your help with this!
I'd been pulling my hair out over this one - until I found this article.
Excellent work - being bookmarked for future reference!
Thanks for writing this.
Cheers,
Alex
This is amazing! So easy to implement, and easily the best guide for excluding yourself from Analytics to be found on the Internet... Thanks ;)
nice...googling for "analytics dont count me" and find this article. Thanks fritteritter.
Works great! Thank you, thank you, thank you :-)
Just an FYI: been using this script great with no problems but recently had to clear out Chrome cookies and re-do everything. Ran into a problem with Chrome also removing javascript from the beginning. So anyone having any issues with getting this to work with Chrome, make sure you go to the very beginning of the address bar and type in 'javascript:' before hitting enter - otherwise you'll just run a google search.
big thanks
Has there been any changes recently?
I used the latest code and Chrome and was able to setup the unique word, however Analytics still counts my visits. Also, every time I restart my PC the cookie gets deleted?
Could this be a Chrome issue? Let me try Firefox and IE and see.
fritterritter, been using this great code for over a year and LOVE it! Thank you! Firefox, however, is becoming a pain with their updates that blot things out and don't work with certain add-ons anymore.
It just did another update yesterday and it blotted out the exclude code yet again. When I checked my analytics just now and found myself included, I redid the code, but no cigar. I copy/pasted as usual into the addy bar, hit enter, and... no box, no nothing.
Popups are allowed for my site, and I also disabled popup blocker completely while doing this just to be sure, also cleared cache, and it still won't work. Thanking you in advance for your help!
PS - I was necessary to redo the exclude code in Firefox last week (have no idea when or why it got removed, possibly on another upgrade), and it worked fine then, so I'm suspecting something with yesterday's upgrade.
Yes!!! fritteritter you're the best! Thanks so much for the lightening-fast response and fix! I love this code!
Using latest Firefox. Tried the Web Console solution. How do you test it to ensure that the site is set up with the cookie?
Hi again,
Don't know if you're aware of this, and maybe it doesn't matter (other than aesthetically) but when this page is brought up in Firefox, it spreads the exclude and the check your browser codes all the way across the page. The exclude coded even runs under a banner ad and off the page! It's fine in IE and Chrome.
Hi there. Yes, this page looks great now. Now for some other annoying news. Firefox seems to be giving grief in all quarters. Using the webconsole route works fine as long as you don't turn off or restart the computer. When you do, Firefox apparently wipes out your lovely code because I start showing up on analytics. So I have to remember on both computers to redo it every time. So far Chrome is behaving itself, so I may have to switch to using THAT browser (sigh).
Any way around that little nuisance? As always, thanks for your great work and help!
I think I found the problem. I went in and looked at the security settings. I had it set to NOT delete cookies, but there is another level where it was deleting them, apparently, on shutdown. I've now changed that (unfortunately the only other options is "until they expires" which doesn't thrill me because of certain other types of cookies), and so far so good.
Btw, how do I check the _utmv cookie expiration? I don't really know how to do that. I tried googling it with no success. I would like to know myself about the expiry date, although it doesn't seem likely that is the issue after what I found. Still...
Found it. _utmv Expires: March 11, 2012 5AM. Obviously not good for two years. Is there a way to change it?
May still be having an issue, however. Will post when I know for sure.
Thanks so very much! It was easy enough that even I could do it.
when i try to run this in firefox, i get message : pagetracker is not defined?
You should open your web site and paste that code.
Guys, how could we use the same code on mobile browser? Is it same or different? When I tried, it is not saying any error or showing alter box with my word.
Fritteritter,thanks for quick reply. I tried that already by keeping that code as link on a sample page. I got the alert message after setting with given value. I have Android OS, still I am not seeing any change. Not sure, are we setting the proper value or not? Or something might be changed with new Google Analytics(GA) code. Still GA is showing my mobile visits after adding the exclude word.
"Some admin systems such as WordPress may not include analytics tracking on administrative pages. While it may seem counterintuitive, you may need to paste your Google Analytics code snippet into the admin page as well in order to make the above code work."
I have WP and the steps aren't working. I know what the admin page is but I don't know how to paste the GA code in. Nor does it really make sense why I would need to paste the GA tracking code there.
Google is a trademark of Google, Inc.
Google Analytics logo is from gaforflash, distributed under Apache License 2.0
Dream/Reality graphic designed by stock.xchng contributor iamwahid
Screenshots taken in Ubuntu 9.04 using Radial theme.
































ajasquared 2 years ago
Great tips! Already put into action! Great hub!