Analytics
2.1K members online now
2.1K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Can't add analytic stracking script to blogger - help

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

A had registrated to get a tracking srcipt to website like this:

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-70121910-1', 'auto');
ga('send', 'pageview');

</script>

I added to before </head> of my blog http://asiagirlcollection.blogspot.com/

But i can't do save template, and the script changed to this :


<script>
(function(i,s,o,g,r,a,m){i[&#39;GoogleAnalyticsObject&#39;]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,&#39;script&#39;,&#39;//www.google-analytics.com/analytics.js&#39;,&#39;ga&#39Smiley Wink;

ga(&#39;create&#39;, &#39;UA-70121910-1&#39;, &#39;auto&#39Smiley Wink;
ga(&#39;send&#39;, &#39;pageview&#39Smiley Wink;

</script>

Any one have same problem ?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Cận L
November 2015

Re: Can't add analytic stracking script to blogger - help

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆
Looks like the best way to add Google Analytics to your blog is in the settings. Look at the video below, about 2:50 in.

https://www.youtube.com/watch?v=D0F7jCovhpQ

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Cận L
November 2015

Re: Can't add analytic stracking script to blogger - help

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆
Looks like the best way to add Google Analytics to your blog is in the settings. Look at the video below, about 2:50 in.

https://www.youtube.com/watch?v=D0F7jCovhpQ

Re: Can't add analytic stracking script to blogger - help

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
it worked fine. thanks

Can't add analytic stracking script to blogger - help

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Hello, I have the same problem with &#39; I also add the tracking UA code to settings but is not working. Any way to solve the &#39; issue? Thanks