|
|
#1 |
|
Junior Member
Join Date: Feb 2010
Posts: 6
|
Hello!
Write to icq support but no answer. Please write here with sample - what kind of Google Analytics code need to write in whitelabel? I try default like Code:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("XX-XXXXXXXX-X");
pageTracker._trackPageview();
} catch(err) {}</script>
And Advansed A site built for a mobile phone on PHP Code:
<?php
// Copyright 2009 Google Inc. All Rights Reserved.
$GA_ACCOUNT = "XX-XXXXXXX-X";
$GA_PIXEL = "/ga.php";
function googleAnalyticsGetImageUrl() {
global $GA_ACCOUNT, $GA_PIXEL;
$url = "";
$url .= $GA_PIXEL . "?";
$url .= "utmac=" . $GA_ACCOUNT;
$url .= "&utmn=" . rand(0, 0x7fffffff);
$referer = $_SERVER["HTTP_REFERER"];
$query = $_SERVER["QUERY_STRING"];
$path = $_SERVER["REQUEST_URI"];
if (empty($referer)) {
$referer = "-";
}
$url .= "&utmr=" . urlencode($referer);
if (!empty($path)) {
$url .= "&utmp=" . urlencode($path);
}
$url .= "&guid=ON";
return str_replace("&", "&", $url);
}
?>
Thanks |
|
|
|
|
|
#2 |
|
The Creator
Join Date: Mar 2004
Posts: 2,346
|
You just need to add this
XX-XXXXXXXX-X |
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT -4. The time now is 04:45 PM.





Linear Mode
