Start Here 👋
In this guide, we will walk through the process of sending events to Cometly using Make.com. This guide covers how to send Cometly events using an existing scenario where you have data coming in to Make. We will show you how to gather and structure your data, and send events to Cometly for accurate attribution.
Video Tutorial:
Please refer to the video for specific implementation steps. Use steps below as an additional guided outline.
Step 1: Capturing Data
Before starting, ensure you have data available to send to Cometly. This can be an existing scenario in Make.com or a new one you’re setting up.
You must have data coming in for the scenario to proceed. Refer to Make.com’s documentation if you need help setting up or configuring your scenario for incoming data.
Once you have data flowing into the scenario, you can proceed with mapping it to Cometly.
Step 2: Formatting Data for Cometly
Now that you have data flowing, it’s time to structure it for Cometly. Follow these steps to ensure the data is correctly mapped.
Add a module in Make and click Create JSON
Create and name your data structure
Under Specification, in the 'Name' field, is where you will want to add the Cometly fields. You can view a list of Cometly fields here in our documentation.
Required fields:
event_name
email
Save your data structure
Manually enter the
event_name
from the Cometly fields in our documentationDynamically add in the other fields using data from the previous modules.
Save changes
Step 3: Sending Data to Cometly
With your data structure correctly set up, the next step is to send the data to Cometly via their API. Follow these steps below to send the event data to Cometly:
Create another module and select HTTP
Choose Make an API Key Auth request
Click Add for the Credentials
Navigate to the Cometly API integration in your Cometly space
Cometly API keys are different for each space. Ensure that you are retrieving the API key from the correct Cometly space if you are using multiple spaces.
Navigate back to your to Make.com.
Name your Key
Key should have Bearer, than a space, and then the API Key like the example below:
Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
In the API Key parameter name box enter:
Authorization
For the URL use: https://app.cometly.com/public-api/v1/events
Set the Method to Post
You need to add two Headers: (see the example image below)
Name: Accept
Value: application/json
Name: Content-Type
Value: application/json
Set the Body type to Raw and add in the dynamic JSON string to the Request Content box
Run a test to confirm the data will be received by Cometly.
Navigate to the Events Manager > Events Log in your Cometly account to check to see if you have received data: