Sha256: 446b079f17e49563bba92671d3f4c73bb1585b05faf18a585ba6478712eaaf5e
Contents?: true
Size: 950 Bytes
Versions: 127
Compression:
Stored size: 950 Bytes
Contents
<?php $GA_ACCOUNT = "MO-3845491-5"; $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 $url; } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Sample Mobile Analytics Page</title> </head> <body> Publishers content here. <?php $googleAnalyticsImageUrl = googleAnalyticsGetImageUrl(); ?> <img src="<?= $googleAnalyticsImageUrl ?>" /> Testing: <?= $googleAnalyticsImageUrl ?> </body> </html>
Version data entries
127 entries across 127 versions & 5 rubygems