Comments on: How To Do Event Tracking In ActiveCampaign on WordPress http://functionalfunnels.com/event-tracking-active-campaign/ Mon, 01 May 2017 05:16:00 +0000 hourly 1 https://wordpress.org/?v=4.8 By: Todd Molloy http://functionalfunnels.com/event-tracking-active-campaign/#comment-30 Mon, 01 May 2017 05:16:00 +0000 http://functionalfunnels.com/?p=1735#comment-30 The plugin will track individual events. A click on 1 specific button or 1 specific link. You will need to modify the code for EACH button/link/whatever you want to track.

For example you might have a blog post and you want to track when someone clicks on a link or button. In that case you would modify the code for that specific link/button.

Normally a link would look like this:
<a href="http://somelink.com">Some link</a>

To track when this link is clicked you would change it to this:

<a href="http://somelink.com&quot; onclick="ac_event(‘Event Name’, ‘Event Value’);">Some link</a>

In this case, your ‘Event Name’ might be ‘Link Click’ and the ‘Event Value’ might be ‘Some Link’

]]>
By: Todd Molloy http://functionalfunnels.com/event-tracking-active-campaign/#comment-29 Mon, 01 May 2017 05:00:00 +0000 http://functionalfunnels.com/?p=1735#comment-29 Hi Adam, for an onSubmit event what are you trying to track? Is this a form submission? If so what are you using for your form?

]]>
By: Adam http://functionalfunnels.com/event-tracking-active-campaign/#comment-28 Sun, 30 Apr 2017 03:42:00 +0000 http://functionalfunnels.com/?p=1735#comment-28 Hi, I am trying to utilize your plugin to capture events from a WordPress site to ActiveCampaign. I installed the plugin and made the changes for my ActiveCampaign site. I am new to WordPress and am trying to figure out how to add Step 4 (Add or update any HTML DOM events you wish to track using this format: [html]domevent=”ac_event(‘Event Name’,’Event Value’);”[/html]). I am not sure where to add it and there isn’t any place to add the function call directly to an onSubmit event. Any help you could provide would be greatly appreciated.

Thanks in advance for your help.

]]>
By: Todd Molloy http://functionalfunnels.com/event-tracking-active-campaign/#comment-17 Fri, 23 Dec 2016 05:31:00 +0000 http://functionalfunnels.com/?p=1735#comment-17 Good idea Craig. I’ve added this to the plugin so it will work with both methods.

]]>
By: Todd Molloy http://functionalfunnels.com/event-tracking-active-campaign/#comment-16 Fri, 23 Dec 2016 05:28:00 +0000 http://functionalfunnels.com/?p=1735#comment-16 Thanks for the comment Mark. I’ve updated the email explaining where to find the info.

]]>
By: Mark H http://functionalfunnels.com/event-tracking-active-campaign/#comment-15 Tue, 22 Nov 2016 02:04:00 +0000 http://functionalfunnels.com/?p=1735#comment-15 This is awesome Todd! Thanks so much for sharing.
Only thing though, the account doesn’t have an Action ID shown anywhere except in the Site Tracking code. You might want to update the welcome email to mention that as it would have saved me some time looking for it lol

Thanks again!

]]>
By: Craig Lambie http://functionalfunnels.com/event-tracking-active-campaign/#comment-14 Tue, 11 Oct 2016 04:55:00 +0000 http://functionalfunnels.com/?p=1735#comment-14 Further to my last comment, I have added this to your plugin, that makes sure if a user logs in, the cookie is set with the email address of the currently logged in user, not relying on us sending them there with the URL parameter, helpful for Actions like looking at membership sites or similar locked down content.

add_action( 'init', 'set_ac_email_cookie' );

function set_ac_email_cookie() {
if ( is_user_logged_in() ) {
global $current_user;
get_currentuserinfo();

setcookie( 'email', $current_user->user_email, 30 * DAYS_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
}
}

]]>
By: Todd Molloy http://functionalfunnels.com/event-tracking-active-campaign/#comment-13 Thu, 06 Oct 2016 04:38:00 +0000 http://functionalfunnels.com/?p=1735#comment-13 Great to hear you have it working and good suggestions. The plugin is pretty basic but it get’s the job done. Feel free to buy me a beer any time 🙂

]]>
By: Craig Lambie http://functionalfunnels.com/event-tracking-active-campaign/#comment-12 Thu, 06 Oct 2016 00:06:00 +0000 http://functionalfunnels.com/?p=1735#comment-12 Thanks for sharing Todd. Very useful 🙂
I made a change, to make it work for me. On activecampaign.php line 30 I changed the enque scripts to false for the infooter option, as my scripts are on the page, so where failing without an “onready” function, which I didn’t want to add.

I also use Henry Reiths http://henryreith.co/ Split Testing AC plugin, which has Admin menu item, and put the API info into the Db via WP_Options, if I had 5 minutes to spare, I would fork your project and add that, or use it/ check for it first.
Since I don’t have time, I will call it a feature request/ suggestion for improvement.

Thanks for implementing such a neat set of code, I will get a great deal of use from it, so next time I am in Perth, let me buy you a beer.

Cheers

]]>
By: Todd Molloy http://functionalfunnels.com/event-tracking-active-campaign/#comment-5 Thu, 28 Apr 2016 01:57:00 +0000 http://functionalfunnels.com/?p=1735#comment-5 No problem. Let me know how you go setting it up and using it in AC

]]>