Skip to content

Commit 227de58

Browse files
author
Dave Newman
committed
Merge pull request coderwall#4 from assemblymade/petametrics
Add in the petametrics tracking JS
2 parents d2d1157 + 7e42b9c commit 227de58

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

app/views/shared/_mixpanel.html.erb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
<% if ENABLE_TRACKING %>
22

3+
<!-- start Petametrics -->
4+
<script type="text/javascript">(function(w,d,s,p,v,e,r) {
5+
w['$petametrics_var']=v;w[v]=w[v]||function(){
6+
(w[v].q=w[v].q||[]).push(arguments)};
7+
w[v].l=1*new Date();e=d.createElement(s),r=d.getElementsByTagName(s)[0];
8+
e.async=1;e.src=p;
9+
r.parentNode.insertBefore(e,r)})
10+
(window,document,'script','//cdn.petametrics.com/p.js','$p');
11+
12+
$p("init", "cd8014kif8htt6tt");
13+
$p("send", "pageview");
14+
</script>
15+
316
<!-- start Mixpanel -->
417
<script type="text/javascript">(function (e, b) {
518
if (!b.__SV) {

0 commit comments

Comments
 (0)