te3:incoming:standard
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
te3:incoming:standard [2015/11/16 12:21] – moderator | te3:incoming:standard [2020/04/15 15:34] (current) – [2. JavaScript tracking] admin | ||
---|---|---|---|
Line 7: | Line 7: | ||
---- | ---- | ||
- | ===== Standard incoming tracking ===== | + | ===== 1. Standard incoming tracking ===== |
Standard incoming tracking is simple to setup: | Standard incoming tracking is simple to setup: | ||
- | ==== PHP extension ==== | + | ==== 1.1. PHP extension ==== |
Add the tracking code below to all your ''< | Add the tracking code below to all your ''< | ||
Line 17: | Line 17: | ||
< | < | ||
- | ++++ Tracking code with your full path already included | We have already prepared the code with your actual full path, public html and directory - navigate to [[te3: | + | ++++ Tracking code with your full path already included | We have already prepared the code with your actual full path, public html and directory - navigate to [[te3: |
++++ | ++++ | ||
---- | ---- | ||
- | ==== SSI extension ==== | + | ==== 1.2. SSI extension ==== |
Add the tracking code below to all your ''< | Add the tracking code below to all your ''< | ||
Line 33: | Line 33: | ||
++++ Tracking code with your directory name already included | | ++++ Tracking code with your directory name already included | | ||
- | We have already prepared the code with your actual directory name - navigate to [[te3: | + | We have already prepared the code with your actual directory name - navigate to [[te3: |
++++ | ++++ | ||
Line 39: | Line 39: | ||
- | ===== JavaScript tracking ===== | + | ===== 2. JavaScript tracking ===== |
This method is applicable in two situations: | This method is applicable in two situations: | ||
- | ++++ 1. If you are using caching - Wordpress users (Super Cache, Total Cache), Nginx caching, etc. | | + | ++++ 2.1. If you are using caching - Wordpress users (Super Cache, Total Cache), Nginx caching, etc. | |
Line 73: | Line 73: | ||
docref=encodeURIComponent(docref); | docref=encodeURIComponent(docref); | ||
- | document.write('< | + | |
+ | |||
+ | var img = document.createElement(' | ||
+ | img.setAttribute(' | ||
+ | img.setAttribute(' | ||
+ | img.setAttribute(' | ||
+ | img.setAttribute(' | ||
+ | |||
+ | var elem = document.createElement(' | ||
+ | elem.style.cssText = ' | ||
+ | elem.appendChild(img); | ||
+ | document.body.appendChild(elem); | ||
} | } | ||
+ | document.addEventListener(" | ||
te3_js_tracking(); | te3_js_tracking(); | ||
+ | }); | ||
+ | |||
// --> | // --> | ||
</ | </ | ||
</ | </ | ||
- | - Adjust " | + | - Adjust " |
- Test it to see if traffic is being counted correctly. Point your browser to a page where you have placed the tracking code and check TE3 stats to see if it was counted. | - Test it to see if traffic is being counted correctly. Point your browser to a page where you have placed the tracking code and check TE3 stats to see if it was counted. | ||
+ | |||
+ | **Note:** \\ | ||
+ | We have already prepared the code with your actual full path, public html and directory - navigate to [[te3: | ||
++++ | ++++ | ||
- | ++++ 2. It allows you to install TE3 on sub.domain.com (separated server) and trade traffic on domain.com (primary server). | | + | ++++ 2.2. It allows you to install TE3 on sub.domain.com (separated server) and trade traffic on domain.com (primary server). | |
If you either can't or don't want to install TE3 on your primary server, remote incoming tracking might be a solution for you. This method allows you to install TE3 on '' | If you either can't or don't want to install TE3 on your primary server, remote incoming tracking might be a solution for you. This method allows you to install TE3 on '' | ||
Line 118: | Line 135: | ||
docref=encodeURIComponent(docref); | docref=encodeURIComponent(docref); | ||
- | | + | // |
+ | |||
+ | var img = document.createElement(' | ||
+ | img.setAttribute(' | ||
+ | img.setAttribute(' | ||
+ | img.setAttribute(' | ||
+ | img.setAttribute(' | ||
+ | |||
+ | var elem = document.createElement(' | ||
+ | elem.style.cssText = ' | ||
+ | elem.appendChild(img); | ||
+ | document.body.appendChild(elem); | ||
} | } | ||
+ | document.addEventListener(" | ||
te3_remote_track(); | te3_remote_track(); | ||
+ | }); | ||
// --> | // --> | ||
</ | </ | ||
Line 133: | Line 163: | ||
</ | </ | ||
+ |
te3/incoming/standard.1447676514.txt.gz · Last modified: 2015/11/16 12:21 by moderator