Contact Form 7 Web Analytics Plugin

⬅️ Back to all plugins  

Contact Form 7 is a Wordpress plugin for managing contact forms on your site. Wouldn't it be great if you could track the form submissions? Thankfully this plugin provides a javascript hook so we can log the submission as an action and/or a goal.

Copy the code into the Additional Settings field at the bottom of the contact form management page of the plugin.


Log as an action: document.addEventListener( 'wpcf7submit', function( e ) {
  clicky.log('#contact-form', 'Contact Form');
}, false );

Log as a goal: document.addEventListener( 'wpcf7submit', function( e ) {
  clicky.goal('Contact Form');
}, false );

Log as an action and a goal: document.addEventListener( 'wpcf7submit', function( e ) {
  clicky.log('#contact-form', 'Contact Form');
  clicky.goal('Contact Form');
}, false );



🤖 Copy this prompt into your AI agent:

Help me install the clicky.com Contact Form 7 plugin/extension on my website. Read `https://clicky.com/help/plugins-contact7` for what it does and `https://clicky.com/help/agents` for general context. Install and configure it (it may need my site ID and sitekey, ask me to grab that from my site preferences), then verify pageviews are being logged via the API or live view before telling me you're done.



📢 Make better decisions with real-time insights

Sign up for Clicky now and transform your analytics