Capturing paid interactions
The following are instructions to capture paid interactions from Facebook Ads, Google Ads, LinkedIn Ads, and other paid destinations.
Capturing paid interactions from Facebook Ads
To capture paid interactions, configure the Facebook Ads website URL to redirect to your website or microsite.
- Log in to Facebook Ads Manager.
- In the ad details, click Build a URL Parameter and
specify the following URL using dynamic parameters provided by Facebook:
adset_id={{adset.id}}&utm_medium={{placement}}&ref_url={{site_source_name}}For more information about dynamic URL parameters, see About URL parameters.
- Test that the paid interactions are captured in Interaction History. For more information, see Capturing paid interactions.
Capturing paid interactions from Google Ads
To capture paid interactions, configure the Google Ads final URL to redirect to your website or microsite.
- Log in to Google Ads.
- In the ad details, configure the destination click URL for the ad:
- In the Final URL field, enter the URL of the website or microsite to which the individual should be redirected on clicking the ad.
- In the Ad URL options section, in the
Tracking template field, specify the URL
using valuetrack parameters provided by Google Ads:
{lpurl}?adgroup_id={adgroupid}&ref_url={_refUrl}&utm_medium={_utmMedium}The {adgroupid} parameter is the ID of the ad group to which the ad belongs. Paid Media Manager uses it to determine the action for which the click was recorded. When an individual clicks the ad, the parameter is replaced by the actual value and passed in the request. You can include other valuetrack parameters as necessary. For more information about valuetrack parameters, see Set up tracking with ValueTrack parameters.
- Click Save and create extensions.
- Test that the paid interactions are captured in Interaction History. For more information, see Capturing paid interactions.
Capturing paid interactions from LinkedIn Ads and other platforms
To capture paid interactions, configure the LinkedIn Ads final URL to redirect to your website or microsite.
- Log in to your LinkedIn account.
- In the ad details, configure the destination click URL for the ad.The proper format of the URL is <microsite URL>?ext_aud_id=<enter_external_audience_id>&ref_url=linkedin.com. For more information about the external audience ID, see Enabling your website to capture paid clicks.
- Test that the paid interactions are captured in Interaction History. For more information, see Capturing paid interactions.
Verifying that paid clicks are recorded in Interaction History
After configuring the CapturePaidResponse service for your website, test that the interactions are captured in Interaction History.
- Identify as a known individual, so that your customer ID is available to the CapturePaidResponse service.
- Enter a sample ad URL to simulate a paid click, for example, https://cdh.uplusbank.com?Site=PMM&ext_aud_id=3d4209a3&ref_url=youtube.com
- Verify that the interaction was captured in Interaction History by doing one of
the following steps:
- In Dev Studio, click , and then verify that the paid click shows in the list
- Run the following queries in your Pega Customer Decision Hub
database client to check that the click is available in Interaction History:
select referrerurl, utm_medium, externalaudienceid from pegadata.pr_data_if_fact;
select pydirection, pychannel, channelgroup, channelsubgroup from pegadata.pr_data_ih_dim_channel;
select pyoutcome, pybehaviour from pegadata.pr_data_ih_dim_outcome;
Previous topic Enabling your website to capture paid clicks Next topic Enabling the offline conversion job scheduler for Paid Media Manager