Hi guys.
I wonder if anyone here could help me but I'm not sure how to do this.
I have some JavaScript that records the demographics of the user when hit the page.
E.g. IP address origin country browser operators system type. etc.
I'm unsure of where to insert this into icyphoenix .
I get it work on HTML very easily on my homepage
I wish nomatter where some the looks on the forum that this
script will be loaded every time.
What files do I have edit
If somebody could give me a clue where to look at sure I can figure out the rest
The code is pretty simple see below
with thanks
<head>
<body>
<script language="javascript" src="src/hits.js"></script>
Need Some Help With Inserting JavaScript Into Page
Subject: Re: Need Some Help With Inserting JavaScript Into Page
Hi darkasylum,
Usually you would put something like that in the overal footer wich makes it autmatically sniff all pages :wink:
Greetings Joshua203
Usually you would put something like that in the overal footer wich makes it autmatically sniff all pages :wink:
Greetings Joshua203
Subject: Re: Need Some Help With Inserting JavaScript Into Page
I would also change that string to:
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/hits.js"></script>
And put the hits.js in templates/common/js/hits.js
As for the best place to put it - One would need the full application to see how it pans out the best. ;)
darkasylum wrote: [View Post]
I would also change that string to:
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/hits.js"></script>
And put the hits.js in templates/common/js/hits.js
As for the best place to put it - One would need the full application to see how it pans out the best. ;)
Subject: Re: Need Some Help With Inserting JavaScript Into Page
to me , it looks like this js api is hosted on a proper server
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.0983s (PHP: 17% SQL: 83%)
SQL queries: 10 - Debug Off - GZIP Enabled