Plugin Directory

Changeset 3082048


Ignore:
Timestamp:
05/06/2024 05:01:58 PM (2 years ago)
Author:
whatconverts
Message:

Fixed ordering of enqueue script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • whatconverts/trunk/whatconverts.php

    r3082009 r3082048  
    4747
    4848    if ($whatconverts_profile_id != '00000' && !$whatconverts_thrive_themes_editing && !$whatconverts_divi_editing) {
     49        wp_enqueue_script( 'whatconverts-tracking-script', '//s.ksrndkehqnwntyxlhgto.com/' . $whatconverts_profile_id . '.js', array(), '', $whatconverts_footer_status );
    4950        wp_add_inline_script( 'whatconverts-tracking-script', 'var $wc_load=function(a){return JSON.parse(JSON.stringify(a))},$wc_leads=$wc_leads||{doc:{url:$wc_load(document.URL),ref:$wc_load(document.referrer),search:$wc_load(location.search),hash:$wc_load(location.hash)}};', 'before' );
    50         wp_enqueue_script( 'whatconverts-tracking-script', '//s.ksrndkehqnwntyxlhgto.com/' . $whatconverts_profile_id . '.js', array(), '', $whatconverts_footer_status );
    5151    }
    5252}
Note: See TracChangeset for help on using the changeset viewer.