Influencer campaigns have emerged as a highly effective strategy for businesses to showcase their products to vast, targeted audiences. The immediate nature of social networks combined with the extensive reach of influencers can generate rapid conversions, a desirable outcome for any marketing effort.
However, the real challenge in influencer marketing often lies not in identifying the right influencers or scheduling content, but in accurately tracking the campaign's performance. While e-commerce companies using platforms like WordPress might find it straightforward to implement affiliate links and third-party tracking plugins, the process is far more complex for businesses that don't rely on such pre-packaged solutions.
Many SaaS companies, for instance, operate with raw data and need to monitor specific in-app actions, rendering most standard affiliate link tracking tools ineffective. This guide will demonstrate a robust, no-code solution for SaaS companies to track influencer campaign metrics and seamlessly integrate them into an Airtable base for streamlined analysis.
This solution leverages the power of Airtable, Segment, Mixpanel, and Make.com (formerly Integromat) to create an automated tracking system. By following the steps outlined, you can deploy this powerful solution without writing a single line of code, ensuring that your influencer marketing efforts are measurable and optimized.
Step 1: Setting up Airtable to track influencer campaigns
The foundational step in tracking influencer campaigns effectively is to establish a well-structured database. Our initial objective was to pinpoint the crucial metrics that would provide valuable insights within an Airtable base. These metrics are indispensable for marketing managers to quickly ascertain the success or failure of a campaign.
We focused on tracking three primary metrics: Registrations, which counts the number of new accounts created via an influencer's unique link; Cost, representing the payment made to the influencer for their campaign; and Cost Per Acquisition (CPA), calculated by dividing the total campaign cost by the number of registrations. Each campaign was also assigned a unique UTM link, generated by the marketing department and used by the influencer to ensure trackability.
When a user registers for an account using one of these specialized UTM links, the action is recorded in the application's backend and directly associated with the corresponding campaign. This UTM link information was also meticulously added to our Airtable base.
Our next task was to differentiate between metrics that required manual input and those that could be dynamically populated through automation. For instance, the campaign's Name, Campaign UTM, and Cost are typically entered manually by the marketing manager or the individual responsible for managing influencer payments.
Conversely, the 'Registrations' metric needs to be retrieved from the software's backend tracking mechanisms and updated regularly within the Airtable base. Automating this data retrieval is crucial, as it also enables the automatic calculation of the CPA for each campaign. Therefore, the subsequent step involved creating an automation to fetch and populate these dynamic numbers into the database on a daily basis.
Pro tip: When setting up your Airtable base, consider using a 'Single select' field for influencer names and a 'Formula' field for CPA from the start. This ensures data consistency and automates calculations as soon as registration data is available.
Step 2: Getting access to the tracking data
Before any automation can be implemented, the most critical prerequisite is gaining access to the relevant data. In our specific use case, the goal was to access the software's tracking data, particularly the metrics directly linked to influencer campaigns. This involved establishing a robust data pipeline to ensure that all necessary information was readily available for analysis and automation.
To achieve this, we utilized Segment to create a seamless data flow between the software's backend and Mixpanel, an analytics application. Segment acts as a central hub, collecting data from various sources and routing it to different destinations. Once the tracking data was successfully flowing into Mixpanel, we could then leverage its powerful features to access and generate specific reports tailored to our needs.
With the tracking data residing in Mixpanel, the next step was to create targeted reports to filter and extract only the data pertinent to our influencer campaigns. For instance, a Mixpanel report can be configured to capture all events occurring on the application's registration page. This report can then be further refined to specifically isolate events triggered by the unique UTM links assigned to each influencer campaign, ensuring that only relevant registration data is collected for analysis.
Step 3: Using Make to update Airtable with Mixpanel data
Once the relevant tracking data was isolated in Mixpanel, the next crucial step was to transfer this information to Airtable. This was accomplished by constructing a Make.com scenario designed to retrieve data from Mixpanel and then update the corresponding campaign records within the Airtable base.
The Make.com scenario begins with an 'HTTP > Make a Basic Auth request' module. This module is configured to send an HTTP request to the Mixpanel API, specifically targeting the insights endpoint: https://mixpanel.com/api/2.0/insights. This request is the gateway to fetching the compiled report data from Mixpanel.
To successfully execute this API request, you need to provide a Mixpanel Token and API Secret, which can be generated by following the instructions in the Make.com documentation for Mixpanel integration. Additionally, specific query parameters are required, including the project_id (under which the report was created) and the bookmark_id (the unique identifier of the report itself). Both of these values can be easily extracted from the URL of your Mixpanel report.
It's essential to enable the "Parse response" option within the HTTP module settings. This feature ensures that the raw API response is automatically converted into structured data elements, making it straightforward to map and utilize this data in subsequent modules within the Make.com scenario. After configuring the module, you can test it by right-clicking and selecting "Run this module only" to verify that the data is being retrieved correctly.
Upon a successful API call, the HTTP module will output a data structure containing a 'series' collection. This collection holds all the campaigns tracked in the Mixpanel report, with each campaign represented as a sub-collection that includes the number of user registrations linked to its corresponding UTM. This structured output is now ready to be passed to Airtable.
To facilitate the transfer, we first employ an 'Airtable > Search Records' module. This module retrieves every record from the Airtable base that contains campaign data, creating a new bundle for each record. Each bundle then triggers subsequent modules in the scenario, ensuring that every campaign entry in Airtable is processed individually.
The core objective is to update each Airtable record with the current registration count obtained from the Mixpanel report. This is achieved using an 'Airtable > Update a Record' module. Within this module, the 'ID' data element from the preceding Airtable module is mapped to the 'Record ID' field. For the 'Registrations' field, a specific formula is used: {{get(3.data.series.Registration Form Submitted - Total; 4.UTM + ".all")}}. This formula dynamically extracts the registration count associated with the campaign's UTM link from the HTTP module's output.
With the automation fully configured, the final step is to schedule its execution. By clicking the clock icon on the HTTP module, you can set the scenario to run at regular intervals. For this project, we scheduled the scenario to execute "Every Day" at 12:00, ensuring that the Airtable base is consistently updated with the most recent registration numbers.
Pro tip: Always test your Make.com scenario with a small subset of data first. This helps identify and resolve any mapping or API issues before deploying the automation to process large volumes of live data, saving time and preventing errors.
Step 4: Automatically calculating the Cost-per-acquisition (CPA)
At this stage, our Airtable base contains all the necessary data points to accurately calculate the Cost Per Acquisition (CPA) for each influencer campaign. One of Airtable's powerful features is its ability to perform these calculations automatically using 'Formula' field types.
For this project, the CPA field in our Airtable base was specifically configured as a 'Formula' field. The formula is designed to take the value from the 'Cost' field of a given record and divide it by the value in the 'Registrations' field of the same record. This setup ensures that the CPA is always current and accurate, reflecting the true cost efficiency of each campaign.
The beauty of this approach is that the CPA value dynamically adjusts whenever the values in the 'Cost' or 'Registrations' fields change. Consequently, when the Make.com scenario updates the number of 'Registrations' on a daily basis, the CPA will be automatically recalculated. This provides an up-to-the-minute reflection of the actual cost per acquisition for each new registrant, offering invaluable real-time insights into campaign performance.
Pro tip: Beyond CPA, consider adding other formula fields in Airtable for metrics like ROI (Return on Investment) or conversion rates. This allows for a more holistic view of campaign success directly within your database, without needing external calculations.