====== Incoming tracking ======
~~NOTOC~~
To configure “incoming traffic” tracking on your site, you'll have to add a special tracking code on all pages that receive traffic (index page and all sub pages). If you are switching from a different script and have a running site, you can safely add TE3 tracking code in addition to the existing code - both scripts will track incoming traffic simultaneously.
----
===== 1. Standard incoming tracking =====
Standard incoming tracking is simple to setup:
==== 1.1. PHP extension ====
Add the tracking code below to all your ''include("/FULL/PATH/TO/public_html/your_te3_directory/in.php");
++++ 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:admin_panel#Header|Main header]], select [[te3:system_info|System info]] from the {{:te3:maintenance_logo.png?nolink|}} Maintenance-drop down menu and copy-paste your code.
++++
----
==== 1.2. SSI extension ====
Add the tracking code below to all your ''
/*
*
- Adjust "domain" variable in the ''te3_js_tracking()'' function. \\ \\
- 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:admin_panel#Header|Main header]], select [[te3:system_info|System info]] from the {{:te3:maintenance_logo.png?nolink|}} Maintenance-drop down menu and copy-paste your JavaScript incoming tracking code.
++++
++++ 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 ''sub.domain.com'' (separated server) and trade traffic on ''domain.com'' (primary server).
**Configuration:**
- Install TE3 on ''sub.domain.com'' on your secondary server. \\ \\
- Add remote tracking code (copy paste from the frame below) to all your pages on ''domain.com'' that receive traffic. \\ \\
- Adjust "domain", "path" and "preventfrom" variables in the ''te3_remote_track()'' function. \\ \\
- Test it to see if traffic is being counted correctly. Point your browser to a page where you have placed remote tracking code and check TE3 stats to see if it was counted.
++++