This topic has 11 replies, 2 voices, and was last updated 9 years by cozy35.

  • Author
  • #42790
     cozy35
    Participant

    Ok, this is puzzling me. I add the Google tracking script and when i save it I get a 404 error. It redirects to http://mywebsite/wp-admin/options.php

    Please help.

    #42791
     cozy35
    Participant

    Looks like one must leave off the <script></script> tags

    #42814
     cozy35
    Participant

    This is still a problem. The setting can save without the <script> tags, but when <script> tags are present the setting does not save and redirects to 404 error page.

    I would appreciate some support here.

    #42854
     Radu
    Moderator

    On my side, this action works well without errors. ( tested on 2.7 )

    What version of sweetdate do you have ?

    If you have 2.7 version, try to disable plug-ins that did not come with the theme.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #42859
     cozy35
    Participant

    I have V2.7 and no other plugins active except those from the theme. I also disabled contact form 7. Still no joy.

    #42864
     Radu
    Moderator

    You can post here the code you are trying to insert ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #42867
     cozy35
    Participant

    Here is the Google Analytic Tracking code…

    <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-58744886-1’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

    #42873
     Radu
    Moderator

    Can you provide a URL and login details ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #42881
     cozy35
    Participant
    This reply has been set as private.
    #42905
     Radu
    Moderator

    It may be a security setting on the server you are hosted.

    You can solve this problem by copying the kleo footer.php in kleo-child

    And in kleo-child / footer.php after <? Php wp_footer (); ?> Add your script

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #42906
     cozy35
    Participant

    I’ll contact my SP and let them have a look at it

    #42907
     cozy35
    Participant

    OK, I turned off mod_security in my cpanel and all is working great. Thanks for the pointer.

Viewing 12 posts - 1 through 12 (of 12 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?