google.pl
35 lines of code
1
#!/usr/local/bin/perl
2
3
# must have's!
4
use strict;
5
use warnings;
6
use CGI::Carp qw(fatalsToBrowser);
7
use DBI;
8
use URI::Escape;
9
10
use lib "/var/www/html/Pm";
11
12
use Html qw(pre_html_header);
13
14
print pre_html_header({type => "text/javascript"});
15
print <<END;
16
(
17
  function(i,s,o,g,r,a,m) {
18
    i['GoogleAnalyticsObject'] = r;
19
20
    i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments); }, i[r].l = 1 * new Date();
21
    a = s.createElement(o),
22
    m = s.getElementsByTagName(o)[0];
23
    a.async = 1;
24
    a.src = g;
25
    m.parentNode.insertBefore(a, m)
26
  }
27
)(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
28
29
ga('create', 'UA-106048547-1', 'auto');
30
ga('send', 'pageview');
31
END
32
33
############################################################
34
35
exit 1;