Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 6a76771

Browse files
author
Vid Luther
committed
Set some properties for ourselves that I think are important
registering some properties for the invididual that I think are important to our business.
1 parent a5c95c6 commit 6a76771

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

page.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,14 @@ function insert_event()
3232
return false;
3333
}
3434
echo "<script type='text/javascript'>
35-
mixpanel.register_once({ 'first_referrer': document.referrer });
35+
var rightNow = new Date();
36+
var humanDate = rightNow.toDateString();
37+
38+
mixpanel.register_once({
39+
'first_wp_page': document.title,
40+
'first_wp_contact': humanDate
41+
42+
});
3643
mixpanel.track(\"viewed page\",
3744
{
3845
'page name': document.title,

0 commit comments

Comments
 (0)