Socket
Socket
Sign inDemoInstall

activecampaign_v3

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    activecampaign_v3

Active Campaign Node.js Wrapper (api version 3)


Version published
Maintainers
1
Created

Readme

Source

Active Campaign Node.js Wrapper


Example usage

var Connector  = require("activecampaign_v3");

const actId = "";
const eventKey = "";
const apiKey = "";
const apiUrl = "https://example.api-us1.com";


const ActiveCamp = new Connector(actId, eventKey, apiKey, apiUrl);

ActiveCamp.addContact({ email: "example@gmail.com", first_name: "bla", last_name: "bla", phone: "+1123456789" });   // add or update contact

ActiveCamp.trackEvent("Signup", "Success", "example@gmail.com");  //User and Singup event must be created first
 
ActiveCamp.trackSite("", { url: encodeURIComponent("https://example.com/visited"), referrer: encodeURIComponent("https://example.com/base_url") }, "example@gmail.com");


Find your credentials


actId (Account ID):

Go to Setting --> Tracking --> Whitelist and Install Code

vgo('setAccount', 'YOUR ACCOUNT ID');
vgo('setTrackByDefault', true);
vgo('process');

eventKey
  • Go to Setting --> Tracking --> Event Tracking
  • Enable event tracking and get your eventKey Id.

apiKey & apiUrl
  • Go to Setting --> Developer --> API Access
  • https://example.api-us1.com (without trailing slash)

Notes

  • For site tracking, must whitelist your domain first.
  • For event tracking, must create Event name from dashboard
  • User email must be added first as contact in order to track them. (use addContact api)
  • Keep your apiKey secret, Don't to expose it publicly in client-side code

Keywords

FAQs

Last updated on 04 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc