Two Google Analytics on one domain -
i have domain php application. few days ago added blog on wordpress domain. www.mydomain.com - php application
www.mydomain.com/blog/ - wordpress blog
i use google tag manager in php application , works fine, wanted have different analytic php app , diffrent blog, added new website analytics account, created new container in google tag manager. created new tags , rules, added code php files.
did same did in php app, visitor stats blog doesn't work. don't info visits. checked in gtm in debug mode , tags fired.
do have idea may wrong? why don't info visits? it's problem analytics or gtm?
my advice use single analytics tag across both sections capture data under 1 account, create 'views' separate out data using filters within each view. it's simpler setup want.
https://support.google.com/analytics/answer/2649553?hl=en-gb&ref_topic=1009620
doing way can still use rules , macros perform additional actions need (goal tracking etc) , keep under 1 container make life easier.
if don't want above, i'd re-check tag firing rule correct blog version. should fire when {{url}} contains /blog/.
if havent try using google tag assistant chrome plugin diagnose further problems. https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk?hl=en
Comments
Post a Comment