Quantcast
Viewing all articles
Browse latest Browse all 13978

Server URL in tracking code (Internal/External)

@itester wrote:

Hi,

I'm new to Piwik.
On my new server, I have 2 trusted_host, one for internal use and one for external.
The external one will be use only for the tag.
My Internal one will be use to manage and view the stats.
When I generate a JavaScript tracking code with my Internal URL, the code report my internal URL.
How can I say to Piwik to always use my "external.exemple.com" URL instead of changing it manually?

(function() {
var u="//internal.exemple.com/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '2']);

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 13978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>