Created
October 11, 2018 13:46
-
-
Save miclow/5f0b95fd6166e182710866d11bf542bd to your computer and use it in GitHub Desktop.
PHP set GA dimension when cookie (user_is_admin) exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( isset( $_COOKIE['user_is_admin'] ) ) { | |
echo 'ga(\'set\', \'dimension1\', \'true\');'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment