How do I ad a tracking script to Dolphin 7?
Rob
How do I ad a tracking script to Dolphin 7? Rob |
Do you mean something along the lines of Google Analytics? BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Yes, Google Analytics to is correct. I think I have it now. I added the script to \templates\base\_footer.html. I also added a tracking code for VisitorSpy and it started picking me up immediately. The _footer.html now looks like this. <bx_injection:injection_footer /> <script language="javascript" src="http://www.celebratecycling.com/vs-celebratecycling-com/track/lib/js/t101.php?MyCode=XXXX-XXXX-XXXX-XXXXX"></script> <script language="; _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html> This seems to be working good now. Next I have to figure out how to get the new 7.0 ray_server working. I had it for the 6.0 but this one is giving me a problems. I'll go over the directions again. Rob |
Yes, Google Analytics to is correct. I think I have it now. I added the script to \templates\base\_footer.html. I also added a tracking code for VisitorSpy and it started picking me up immediately. The _footer.html now looks like this. <bx_injection:injection_footer /> <script language="javascript" src="http://www.celebratecycling.com/vs-celebratecycling-com/track/lib/js/t101.php?MyCode=XXXX-XXXX-XXXX-XXXXX"></script> <script language="; _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html> This seems to be working good now. Next I have to figure out how to get the new 7.0 ray_server working. I had it for the 6.0 but this one is giving ne a problems. I'll go over the directions again. Rob You can make your changes more update-proof by copying the _footer.html file to /templates/tmpl_uni/, or the directory of your active template (or all of them, if you have several). What kind of problem are you having with the RMS? BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Great, I just renamed /tmpl_uni/_footer.html to /tmpl_uni/_footer_old.html and copied /base/_footer.html to /tmpl_ini/_footer.html so that the one with the tracking code is now in /tmpl_uni/. That is what I understood you to instruct me to do. As far as \ray_server\ goes, I'll get back to you on that. I was working on it last night and it but never got it to work. I'll have to document what I have done so that I can explain it clearly enough for you to help. And BTW, thanks for the help. I'll be back. Rob |
Great, I just renamed /tmpl_uni/_footer.html to /tmpl_uni/_footer_old.html and copied /base/_footer.html to /tmpl_ini/_footer.html so that the one with the tracking code is now in /tmpl_uni/. That is what I understood you to instruct me to do. As far as \ray_server\ goes, I'll get back to you on that. I was working on it last night and it but never got it to work. I'll have to document what I have done so that I can explain it clearly enough for you to help. And BTW, thanks for the help. I'll be back. Rob You don't need to have a _footer_old.html in your /tmpl_uni/directory: just make the same modification that you did to the one in /base/ to that file. But, either way works, so it's your choice (I like to make backups of my changes, too). I hope you find a solution to your RMS issue. When the RMS chooses not to work, it can become a real pain. BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
I just want to make sure I didn't loose something I needed so I saved the old "_footer.html". I learned a long time ago that it is a lot easier to recover something that way when I make a mistake. Rob |