Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 476 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 476 Bytes

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>