ActiveCampaign (AC) offer a feature in their marketing automation platform to track user activity on your site and use it to trigger events. By default it only know who your users are if they interact with AC forms or emails during a session, however today I’ve released an Advanced ActiveCampaign Site Tracking plugin on GitHub that can automatically track any logged in user via email.
The code at the core of this plugin is based on a snippet provided by from Steve Woody of OnlineMastery.co.uk. When I saw his post I knew that we could help a lot of people with it so I reached out for permission to build upon it and within hours had developed a fully pluginised version that anyone with WordPress could use.
The plugin works by querying the WordPress database to get the email address of the user that is logged in to the current session. It then pushes that data into the official ActiveCampaign tracking code and injects the whole thing into the page of the active user. When the page loads all of this data is pushed through to ActiveCampaign so you can see exactly which pages a user has visited on your website.
Not only this but through the power of marketing automation you can then use this page visit data to customise your emails to users, launch new email marketing campaigns, send site messages, adjust lead scoring and more. Obviously this could have data privacy implications so as a responsible marketer make sure that your privacy policies are up to date and provide users with a way to opt out of behavioural marketing.
With all of that said if you’re ready to step up your marketing automation game with ActiveCampaign then you can download the Advanced ActiveCampaign Site Tracking plugin here. I’ve also submitted a copy to the official WordPress repository but that can take some time for manual review so for now use the link above and I’ll send an update when it goes live on the WP repository.