-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmjs_display_config.php
28 lines (24 loc) · 1023 Bytes
/
mjs_display_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
require("./mjs_cfg.php");
header('Content-Type: text/html');
$path_parts = pathinfo($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
$baseURL = "//".$path_parts['dirname']."/";
$siteID = "[REPLACE_WITH_SITE_ID]";
if (isset($_GET["siteID"])) {
$siteID = $_GET["siteID"];
}
?>
<pre>
<script>
var _paq = _paq || [];
_paq.push(["trackPageView"]), _paq.push(["enableLinkTracking"]),
function() {
_paq.push(["setTrackerUrl", "<?php echo $baseURL.$phpFilename;?>"]);
_paq.push(["setSiteId", "<?php echo $siteID;?>"]);
_paq.push(['disableAlwaysUseSendBeacon', 'true']);
var a = document, r = a.createElement("script"), s = a.getElementsByTagName("script")[0];
r.async = !0, r.defer = !0, r.src = "<?=$baseURL.$jsFilename;?>", s.parentNode.insertBefore(r, s)
}();
</script>
<noscript><img src="<?php echo $baseURL.$phpFilename."?".$originalToReplaced["idsite"]."=".$siteID."&".$originalToReplaced["rec"];?>=1" /></noscript>
</pre>