• Resolved instamed

    (@instamed)


    Hello @cliffseal ,

    I am hoping to confirm whether or not the Pardot plugin is even necessary for our implementation with WordPress.

    Currently we create all forms within Pardot and use custom short code or HTML to implement the forms in WordPress. We do not create forms within WordPress page/post editors.

    We also have the Pardot tracking tag implemented within our header file for tracking users on the site.

    Do we even need the WordPress plugin or can I remove it from WordPress?

    • This topic was modified 5 years, 7 months ago by instamed.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Cliff Seal

    (@cliffseal)

    The plugin isn’t required to do any of it, it just makes it easier to work with embed codes and ensures Javascript is properly enqueued. I’m not sure why you would need a custom shortcode beyond what the plugin provides.

    I do not recommend adding your tracking code to the <head> section, and it probably shouldn’t be directly in the header.php file. As the plugin does, you should enqueue your Javascript using WordPress’s built-in functionality so that it’s printed—in proper order—in the footer.

    Thread Starter instamed

    (@instamed)

    @cliffseal Thank you for the quick reply! Great, we will look to remove the plugin from our WordPress instance. Just out of curiosity, why do you recommend adding the tracking Javascript in the footer?

    All of our Google tags have been specified to be added to the header.php file, so that they accurately fire before other Javascript on pages. Also, Google Tag Manager, which we are implementing soon, is also inserted within the header.

    Thanks!

    -Hank

    Plugin Author Cliff Seal

    (@cliffseal)

    Google always wants its stuff in the <head> to ensure it records the visit as soon as possible.

    Specifically in WordPress, it’s generally advised to use the built-in enqueuing system so that you can manage dependencies properly (e.g. ensure jQuery is loaded before script x). And since WordPress doesn’t make Javascript async by default, it’s smart to load non-critical scripts before the closing </body> tag to get your page loaded faster for visitors.

    Thread Starter instamed

    (@instamed)

    @cliffseal Got it, that makes sense. Thank you for all of this great information!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Confirm Plugin Functionality/Usage’ is closed to new replies.