Changeset 2287519
- Timestamp:
- 04/20/2020 02:53:36 PM (6 years ago)
- File:
-
- 1 edited
-
wp-active-campaign-api/trunk/README.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-active-campaign-api/trunk/README.txt
r2287096 r2287519 3 3 Author: Trumani 4 4 Plugin URI: https://trumani.com 5 Contributors: trumani , bhadaway, Keith Graham5 Contributors: trumani 6 6 Tags: activecampaign 7 7 Stable Tag: trunk 8 8 Version: 1.1.7.1 9 Tested up to: 5. 3.29 Tested up to: 5.4 10 10 License: https://www.gnu.org/licenses/gpl.html 11 11 … … 14 14 == Description == 15 15 16 Th is plugin integrates with Active Campaign's API which utilizes the site and event tracking.16 The WP ActiveCampaign API plugin integrates with Active Campaign's API which utilizes the site and event tracking and serves as a base plugin for other plugins, including our MemberMouse connector. 17 17 18 Requirements 18 <h3>Requirements </h3> 19 19 20 20 * Site Tracking and Event Tracking are enabled … … 27 27 *All of this can be manage from your site tracking and event tracking page. Which is under integration— in the sidebar's other option.* 28 28 29 Configuration 29 <h3>Identifying Users</h3> 30 30 31 Once you have installed and activated the plugin. Go to Settings -> Active Campaign API. Add the API key, Event key, Event ID, and AC's api url. Click 'Save General Changes' to update.31 In order to associate page visits and events with contacts in ActiveCampaign as soon as possible simply include the email parameter in links to your website or on thank you pages. 32 32 33 ### Usage ### 34 ________________________________________________________ 33 In the case of a visit by email: 34 yoursite.com/?email=%EMAIL% 35 35 36 **Tracking Events** 36 Or you can pass it immediately upon subscription to your thank you page yoursite.com/thank-you/?email=%EMAIL% 37 37 38 This can be done through a JavaScript event. For example, if you want to track event when they click a link, you can do this: 38 I do both so that I can make sure I’m tracking users. 39 39 40 ``` 41 #!html 42 <a href="#" onclick="acap_events('test_event', 'shots fired!');">AC Events</a> 40 Once you do this the plugin will create a cookie for that visitor and that cookie can be used later by our other plugins (or by yours!) for a variety of things. 43 41 44 ``` 45 The onclick event will trigger the acap_events function that would run the event. This events are registered on the current logged-in user using their email address. 46 ________________________________________________________ 42 <h3>Creating Events</h3> 47 43 48 **Site Events** 44 We wanted to make tracking events on a page really easy so we added this function to the WP2AC plugin: 49 45 50 This event is automatically triggered when they visit any of the site pages. This event will register on the current logged-in user using their email address. 46 ac_events('event','value'). 47 48 This makes adding events to link or button clicks or anywhere else that you can use javascript really easy. 49 50 For example if you wanted to track an event when someone clicks on a link 51 52 onclick="ac_events('Event','Value');" 53 54 You can also use this in other places like to track video actions which is something we do with Wistia in the following example. 55 56 In this example we fire the event “Watched 60 Seconds!” with the value “What a guy” when the user has watched 60 seconds of a video. 57 58 <script> 59 window._wq = window._wq || []; 60 61 wistiaEmbed.bind("secondchange", function (s) { 62 if(s === 60) { 63 ac_events('Watched 60 seconds!', 'What a guy'); 64 } 65 }); 66 </script> 67 68 Anywhere you can use Javascript you can use “ac_events();” 69 70 Premium Options
Note: See TracChangeset
for help on using the changeset viewer.