Tracking Code Not Disabled in Admin

4 views
Skip to first unread message

Phil

unread,
May 28, 2012, 5:56:40 PM5/28/12
to in-por...@googlegroups.com
Hello,

I've just discovered today that every time we use "content mode" feature from admin, or when we preview a product, tracking code is still in footer, and not in a special tag, as other features which are disabled when we are in admin mode.

There's 2 problems:
- these visits, while small in count, are wrong visits from statistic view
- when using Google Analytics, all visited pages finally ends in search engine results...

I had recently the case of pages, which were unreachable from front, because still under dev, but have been crawled by Google, and finally all website links have been crawled, with ?pass_through=ts,td&ts=showall&td=no&admin=1&editing_mode= in all URLs :-(

I simply suggest to update next release of advanced theme with a conditional loading for tracking code.

p

Dmitry A.

unread,
May 29, 2012, 1:28:53 AM5/29/12
to in-por...@googlegroups.com
Hi Phil,


Thanks sharing your issue!

Basically there are 2 ways of solving this:

1. Add IF that checks and doesn't include Tracking Code if it's an Admin or something. It's okay and easy, but possibly adds an additional IF on every page load in Admin + still not saves you from having your IP to be include on Front-end results

2. Exclude all office (unwanted) IPs from tracking on Google side once and for all. This one makes more sense since done on Google Tracking side and more realiable if you want to fully exclude your IP from messing up your Analytics.


We have done 2nd option on Intechnic since it's definitely solves all the questions and not just have of them.


I hope this helps!


DA

Phil

unread,
May 29, 2012, 2:56:11 AM5/29/12
to in-por...@googlegroups.com
I'm proposing to add first solution into all themes we are providing. I think both things should be done, but why not providing help for new user, and avoid to load unnecessary code? (Yes, it loads asynchronously now, but anyway it loads...)



Envoyé avec Sparrow (http://www.sparrowmailapp.com/?sig)

Alexander Obuhovich

unread,
May 29, 2012, 4:03:20 AM5/29/12
to in-por...@googlegroups.com
If the following code in template is used to display a tracking code:

<inp2:st_PageInfo type="tracking"/> or <inp2:st_PageInfo type="index_tools"/> tags to display tracking code, then you shouldn't have any such problems, because in In-Portal 5.0.3 (see http://tracker.in-portal.org/view.php?id=566 task) this was fixed already.

I bet you're using some other way of including tracking code on a page, that might be used in older (e.g. 4.3.9) In-Portal theme versions.

Phil

unread,
May 29, 2012, 4:08:17 AM5/29/12
to in-por...@googlegroups.com
I use <inp2:st_PageInfo type="tracking"/> on a v510.



Envoyé avec Sparrow (http://www.sparrowmailapp.com/?sig)


Alexander Obuhovich

unread,
May 29, 2012, 4:13:03 AM5/29/12
to in-por...@googlegroups.com
I see you have "admin=1&editing_mode=" in the url. No editing mode specified. Tracking code is excluded when there is editing mode specified in url.

Where exactly you get these links from? Sounds like link to a Front-end built from Admin Console, maybe shortcut icon to view link/product detail page from "Structure & Data" section?

Phil

unread,
May 29, 2012, 4:17:02 AM5/29/12
to in-por...@googlegroups.com
I got these links from Google itself :)



Envoyé avec Sparrow (http://www.sparrowmailapp.com/?sig)


Alexander Obuhovich

unread,
May 29, 2012, 4:37:30 AM5/29/12
to in-por...@googlegroups.com
Interesting. I didn't knew that google use pages, discovered by Google Analytics during site crawling too.

I've checked shortcut icon in admin and it passes "editing_mode" correctly.

Alexander Obuhovich

unread,
May 29, 2012, 8:48:16 AM5/29/12
to in-por...@googlegroups.com
To prevent these links with "admin=1" and "editing_mode=" being indexed by google we can also not display tracking code on pages, that have "admin=1" parameter in url.

But at the end we really need to figure out from where these broken links (with empty editing_mode parameter) comes from.

Dmitry A.

unread,
May 30, 2012, 1:25:16 AM5/30/12
to in-por...@googlegroups.com
Phil,


After further review of your case here is what we recommend for you the best:

1. Add your home/office/developers IPs to exclude from Google Analytics

2. After 1 month please let us know if you still see those URLs in your analytics. If you do - we'll need more details from you (ie. referrer page and so on).


It's important to note that we'll continue investigating when URLs with EMPTY "editing_more=" are possible (ie. admin=1&editing_mode=)


This would be the only solid way of catching this issue and preventing it in the future.


DA

Phil

unread,
May 30, 2012, 5:05:45 AM5/30/12
to in-por...@googlegroups.com
Hi Dmitry,
thanks for advices here. The problem isn't that I see these URL in analytics, but rather Google have indexed absolutely all website URL with these trailing parameters. Actually 12k links (!) which have this parameter.
Maybe analytics code is the source of the problem, if stats are used to discover new links... who knows?
p



Envoyé avec Sparrow (http://www.sparrowmailapp.com/?sig)


Dmitry A.

unread,
May 30, 2012, 11:31:04 PM5/30/12
to in-por...@googlegroups.com
Phil,

Once again I would say that Google definitely would follow it's own rules and skip any requests from IPs that are listed for exclusion so none of these Admin URLs + Front-end URLs won't mess up your statistics.

For now I have no answer to your last question, but we can just guess that stated above should be true.

DA

Phil

unread,
May 31, 2012, 3:34:48 AM5/31/12
to in-por...@googlegroups.com
Dmitry,
excluding all IPs are a good solution, and as you've noticed I've posted about this subject in dev, as it's not a bug but an improvement suggestion for themes.
Nothing else to add to this thread :)
p



Envoyé avec Sparrow (http://www.sparrowmailapp.com/?sig)


Reply all
Reply to author
Forward
0 new messages