Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there –

    Thanks for checking out Leadin! Does your custom landing page call the wp_footer method anywhere? Usually you’ll see a call in your main theme to get_footer, which includes the footer.php file.

    Inside of footer.php is where wp_footer() is usually called. Leadin’s javascript files are loaded in the WordPress footer and if wp_footer is never called in your theme, the Leadin scripts fail to loaded properly.

    If you take a look at the source code for your page you should see a leadin-tracking.min.js file. If that’s not included it’s highly likely that your page isn’t calling the wp_footer() method. If you can’t call that method for some reason, I can send you over the code to manually install the Leadin files. Please do let me know what you find and we can go from there. Thanks!

    Thread Starter mojer

    (@ibnusaheed)

    Thanks Andy for spending your time to reply.

    I prefer not to add that wp_footer() only for this plugin. So I’d just need to add leadin-tracking.min.js file to the page, right? If not, I’d highly appreciate if you could send that files manually. You could upload it somewhere else and link it here so that I can download it.

    I hope this would be helpful for anyone who are looking for using custom landing pages.

    Thanks again for your valuable time.
    Awaiting your reply

    If you want to add the Leadin tracking, just drop the following lines of code in your template file, preferably in the <footer> tag. If you don’t have a footer tag, just make sure you are including them after jQuery is loaded. You’ll need to change out the parts in bold with your WordPress URL:

    <script type=’text/javascript’>
    /* <![CDATA[ */
    var li_ajax = {“ajax_url”:”http:\/\/your_domain.com\/wp-admin\/admin-ajax.php”};
    /* ]]> */
    </script>

    <script type=’text/javascript’ src=’https://your_domain.com/wp-content/plugins/leadin/assets/js/build/leadin-tracking.min.js’></script>

    Let me know if that doesn’t work for you and we’ll go from there. Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘LeadIn plugin on custom page template’ is closed to new replies.