Plugin Directory

Changeset 2287519


Ignore:
Timestamp:
04/20/2020 02:53:36 PM (6 years ago)
Author:
Trumani
Message:

description update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-active-campaign-api/trunk/README.txt

    r2287096 r2287519  
    33Author: Trumani
    44Plugin URI: https://trumani.com
    5 Contributors: trumani, bhadaway, Keith Graham
     5Contributors: trumani
    66Tags: activecampaign
    77Stable Tag: trunk
    88Version: 1.1.7.1
    9 Tested up to: 5.3.2
     9Tested up to: 5.4
    1010License: https://www.gnu.org/licenses/gpl.html
    1111
     
    1414== Description ==
    1515
    16 This plugin integrates with Active Campaign's API which utilizes the site and event tracking.
     16The 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.
    1717
    18 Requirements
     18<h3>Requirements </h3>
    1919
    2020* Site Tracking and Event Tracking are enabled
     
    2727*All of this can be manage from your site tracking and event tracking page. Which is under integration— in the sidebar's other option.*
    2828
    29 Configuration
     29<h3>Identifying Users</h3>
    3030
    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.
     31In 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.
    3232
    33 ### Usage ###
    34 ________________________________________________________
     33In the case of a visit by email:
     34yoursite.com/?email=%EMAIL%
    3535
    36 **Tracking Events**
     36Or you can pass it immediately upon subscription to your thank you page yoursite.com/thank-you/?email=%EMAIL%
    3737
    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:
     38I do both so that I can make sure I’m tracking users.
    3939
    40 ```
    41 #!html
    42 <a href="#" onclick="acap_events('test_event', 'shots fired!');">AC Events</a>
     40Once 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.
    4341
    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>
    4743
    48 **Site Events**
     44We wanted to make tracking events on a page really easy so we added this function to the WP2AC plugin:
    4945
    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.
     46ac_events('event','value').
     47
     48This makes adding events to link or button clicks or anywhere else that you can use javascript really easy.
     49
     50For example if you wanted to track an event when someone clicks on a link
     51   
     52onclick="ac_events('Event','Value');"
     53
     54You can also use this in other places like to track video actions which is something we do with Wistia in the following example.
     55
     56In 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>
     59window._wq = window._wq || [];
     60 
     61wistiaEmbed.bind("secondchange", function (s) {
     62  if(s === 60) {
     63    ac_events('Watched 60 seconds!', 'What a guy');
     64  }
     65});
     66</script>
     67
     68Anywhere you can use Javascript you can use “ac_events();”
     69
     70Premium Options
Note: See TracChangeset for help on using the changeset viewer.