Go Back   PornoSells.com > Mobile

Reply
 
Thread Tools Display Modes
Old 02-28-2010, 05:01 AM   #1
Topmas
Junior Member
 
Join Date: Feb 2010
Posts: 6
Default Google Analytics

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>
It not work

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("&", "&amp;", $url);
  }
?>
but not tracking aprove - please write here more information about how to add Google Analytics in mobile version.

Thanks
Topmas is offline   Reply With Quote
Old 03-07-2010, 11:51 PM   #2
PR_Dave
The Creator
 
Join Date: Mar 2004
Posts: 2,346
Default

You just need to add this

XX-XXXXXXXX-X
__________________
PR_Dave is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:45 PM.


PimpRoll | Porn

Powered by vBulletin
Copyright © 2000-2010 Jelsoft Enterprises Limited.