1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need analytics help, can't install in my php site!!

Discussion in 'Google Analytics' started by Your Lover For Ever, Sep 26, 2009.

  1. #1
    I can't find any </body> tags to put the code before, so I put the code on footer.tpl, 5 days ago
    from: templates/default/html/footer.tpl

    That is how I exactly put it:
    //-->
    			Powered by <a href="http://www.wallpaperscript.net" title="Wallpaper script" target="_blank">W-script</a> v{$smarty.const.WS_VERSION}{$smarty.const.TRACKING_CODE|stripslashes}
    		</p>
    
    
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-10536803-3");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    
    
    	</div>
    </div>
    PHP:


    However analytics Still saying that "Tracking not installed!!"

    Some help needed please
     
    Your Lover For Ever, Sep 26, 2009 IP
  2. Your Lover For Ever

    Your Lover For Ever Peon

    Messages:
    172
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Could any one help please!
     
    Your Lover For Ever, Sep 26, 2009 IP
  3. creare-site

    creare-site Active Member

    Messages:
    159
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    I think your location is not correct (not in footer anyway). If you have a wordpress site, search analytics plugin for this purpose.
     
    creare-site, Sep 27, 2009 IP
  4. david.j

    david.j Peon

    Messages:
    180
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    at first submit your site on google webmaster and submit meta tag on it after it open your google analytics account submit your site and paste analytic code just before end of body tag
     
    david.j, Sep 28, 2009 IP
  5. fish01

    fish01 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    @thread starter: could you give the full list of template file?

    I thing, you using template frame work on your php code, but i can't give some suggestion because lack of information.
     
    fish01, Sep 28, 2009 IP
  6. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You're not using the default template. Looks like you;re using one called blueprint. Does that template have a footer.tpl?
     
    theapparatus, Sep 28, 2009 IP
  7. allennbb

    allennbb Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I would double check if anlytics code is correct
    because if there is an syntax problem php would throw an error
     
    allennbb, Sep 28, 2009 IP
  8. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #8
    A quick check of the code in the first post shows that even the previous code in the file doesn't match up with what's in the site right now. Checking the analytics code is moot since the poster is editing the wrong file.
     
    theapparatus, Sep 28, 2009 IP
  9. Your Lover For Ever

    Your Lover For Ever Peon

    Messages:
    172
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If you would like to post a link of the full php script here, I don't mind. It's free any way.
     
    Your Lover For Ever, Sep 28, 2009 IP
  10. Your Lover For Ever

    Your Lover For Ever Peon

    Messages:
    172
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No, I'm using the default one, and yes the template has a footer.tpl
    again, if it is OK, I could give the link of this script for you to check it..

    Thanks for help
     
    Your Lover For Ever, Sep 28, 2009 IP
  11. wahed2000

    wahed2000 Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    search in youtube about google analytic you will find more help
     
    wahed2000, Sep 30, 2009 IP
  12. shaileshk

    shaileshk Well-Known Member

    Messages:
    455
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #12
    Hay!

    why you not checkeing your website View source from web browse. If you view source have analytic code

    login to your account
    Clieck on edit icon
    click on "check status" link


    I hope it will help
     
    shaileshk, Oct 1, 2009 IP
  13. Deus Ex

    Deus Ex Peon

    Messages:
    531
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Add it right before </body> and it should be in the footer.tpl page.
     
    Deus Ex, Oct 2, 2009 IP
  14. Innocentboy

    Innocentboy Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    If you are using wordpress, you can place your code using widget option. You can find widget at Appearance->widget in your dashboard.

    In the widgets, you will have something called as Text. Use that and insert your analytics code in it.
     
    Innocentboy, Oct 4, 2009 IP
  15. RAB99

    RAB99 Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    You should place the analytics code in the header file, not the footer, and make sure you dont have any open brackets that are affecting the code in your site, check the code the validator here http://validator.w3.org
     
    RAB99, Oct 4, 2009 IP
  16. risma2006

    risma2006 Active Member

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #16
    If you use blogspot, go to your google account, open analytics and setting the code.
     
    risma2006, Oct 4, 2009 IP
  17. blueapple

    blueapple Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Just keep the code in header and close the tag properly, try it will work sure.
     
    blueapple, Oct 5, 2009 IP