Chris_St Posted April 2, 2017 Share Posted April 2, 2017 Hi, I would like to use Logaholic to track site visits. To do this I need to paste a code into each page I want tracked. Below is the code from the demo version. Can someone please tell me where to paste this? I tried it in the product description source with no luck and also in the skins default.css. <script type='text/javascript'> var lg_url = 'http://demos4.softaculous.com/Logaholic/'; var lg_profile = 'mysite'; </script> <script type='text/javascript' src='http://demos4.softaculous.com/Logaholic/inpage.js' ></script> I already have google anayltics tracking OK and would like to use this as a tool to provide artists with details of the visits (views) of their artworks. An alternative is a hit counter on each page. Tried a few of those but pasting into each page just gives a total for all views instead of individual pages, where with this I could generate a report for email. Plus I don't really like hit counters! Hope this one is easy to do, Regards, Chris Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 2, 2017 Share Posted April 2, 2017 I'm guessing about this - Try it in main.php in the head and enclose it in {literal} {/literal}. Quote Link to comment Share on other sites More sharing options...
Chris_St Posted April 3, 2017 Author Share Posted April 3, 2017 13 hours ago, Dirty Butter said: I'm guessing about this - Try it in main.php in the head and enclose it in {literal} {/literal}. Thanks for the suggestion. I have now trialled it in there (just before the closing head tag) with and without {literal} but didn't work, Thanks, Chris Quote Link to comment Share on other sites More sharing options...
Chris_St Posted April 3, 2017 Author Share Posted April 3, 2017 Now trialing it after the body tag Quote Link to comment Share on other sites More sharing options...
Chris_St Posted April 3, 2017 Author Share Posted April 3, 2017 4 hours ago, Chris_St said: Now trialing it after the body tag Thanks DB, here is an update. It works before the closing body tag without the {literal} {literal} This might be worth keeping for other users. I also found that a site https://statcounter.com provide provide a tracking function with good drill downs that works in the main.php too 500 page hits on the free plan Regards, Chris Australian United Artists Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 3, 2017 Share Posted April 3, 2017 Glad you worked it out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.