[Resolved] Where to place Drip JS Code

Home Forums Support [Resolved] Where to place Drip JS Code

Home Forums Support Where to place Drip JS Code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #755195
    Brent Wilson

    I am supposed to do the following in order to add the Drip code to my site (see instructions below). But how do I do this? Is there a way I can add this to the Snippets plugin?

    Brent

    Instructions:

    Please install the following asynchronous Javascript snippet on every page of
    outdoorkidshop.com just before the closing </body> tag.

    <!– Drip –>
    <script type=”text/javascript”>
    var _dcq = _dcq || [];
    var _dcs = _dcs || {};
    _dcs.account = ‘2000002’;

    (function() {
    var dc = document.createElement(‘script’);
    dc.type = ‘text/javascript’; dc.async = true;
    dc.src = ‘//tag.getdrip.com/2000002.js’;
    var s = document.getElementsByTagName(‘script’)[0];
    s.parentNode.insertBefore(dc, s);
    })();
    </script>
    <!– end Drip –>

    #755371
    David
    Staff
    Customer Support

    Hi there,

    use the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    Create New Hook and Add your script to the content
    Select the after_footer hook.
    Set Display Rules to Entire Site.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.