Skip to content

apolloeleven/GaOptOut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ApGaOptOut

Basic usage

Inset code before google analytics

    <script type="text/javascript" src="ApGaOptOut.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var gaOptOut = new ApGaOptOut({
                gaAppId: 'UA-xxxxxxxx-x',
                optOutCallEvent: 'click',
                elementSelector: '[href="#jsgaoptout"]',
                debug: true
            });
        });
    </script>