analitic code error see

Warning: JavaScript code is reuqired!

see my code


(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.............................................................................................................
....xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.............................................................................................................
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx..................................
ga('send', 'pageview');



never mind "X" that line deleted for safety. this code worked in 1.4
In SEO
Friday, December 16 2016, 09:50 AM
Share this post:
Responses (8)
  • Accepted Answer

    Friday, December 16 2016, 11:50 AM - #Permalink
    It seems you're missing the script tags Shajahan. Please, get the correct code directly from Google Analytics.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, December 16 2016, 01:07 PM - #Permalink
    not missing all ok i go to google analytic account then clic tracking code see blow

    Website tracking
    This is the Universal Analytics tracking code for this property.
    To get all the benefits of Universal Analytics for this property, copy and paste this code into every webpage you want to track.

    i get copy this code


    (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','https://www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-xxxxxxxx-x', 'auto');
    ga('send', 'pageview');


    go to analytic extension open past and on save

    Warning: JavaScript code is reuqired!

    (XXXXXXXXX IS MY ID) MY VERSION 1.5
    OLD VERSION PERFECTLY WORKING THIS

    PLEASE ANSWER
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, December 18 2016, 07:58 AM - #Permalink
    denis

    not missing all ok i go to google analytic account then click tracking code see blow

    Website tracking
    This is the Universal Analytics tracking code for this property.
    To get all the benefits of Universal Analytics for this property, copy and paste this code into every webpage you want to track.

    i get copy this code see blow



    (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','https://www.google-analytics.com/analytics.js','ga');

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



    to paste analytic extension and on then save ......see warning

    Warning: JavaScript code is reuqired!

    (XXXXXXXXX IS MY ID) MY VERSION 1.5
    OLD VERSION PERFECTLY WORKING THIS

    PLEASE ANSWER
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, December 18 2016, 08:03 AM - #Permalink
    Denis Duliçi wrote:

    It seems you're missing the script tags Shajahan. Please, get the correct code directly from Google Analytics.


    denis

    not missing all ok i go to google analytic account then click tracking code see blow

    Website tracking
    This is the Universal Analytics tracking code for this property.
    To get all the benefits of Universal Analytics for this property, copy and paste this code into every webpage you want to track.

    i get copy this code see blow



    (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','https://www.google-analytics.com/analytics.js','ga');

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



    to paste analytic extension and on then save ......see warning

    Warning: JavaScript code is reuqired!

    (XXXXXXXXX IS MY ID) MY VERSION 1.5
    OLD VERSION PERFECTLY WORKING THIS

    PLEASE ANSWER
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 04 2017, 10:21 PM - #Permalink
    Hi Support,

    Please can you provide some "test" code to try? If the field in the form requires the Javascript html tags before it will submit can you simply enter any code that is within the Javascript tags or is there more error checking in the background?

    We have just installed Arastta version 1.5 and found that it does not allow us to submit code in Javascript tags or without, therefor the implication is that there is more than one error or bug to resolve.

    Our Google Analytics code worked in Arastta version 1.42, but does not currently work in Arastta version 1.5 due to the fact that we cannot enter any code.

    We can probably enter it into a file or the database "directly" once we have established where it resides, but the problem we are discussing is valid.

    We are therefor asking can you enter anything,? Then as step two we can establish the validity of the code being entered.

    Hope you can help.

    P.S. Please can you confirm where the form saves the data?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 05 2017, 02:48 AM - #Permalink
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, January 05 2017, 09:43 AM - #Permalink
    solve simple and self see githhub https://github.com/arastta/arastta/issues/631 a small code editing very ezy
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, January 07 2017, 12:28 AM - #Permalink
    Thank you.
    The reply is currently minimized Show
Your Reply