View source: R/fb_ads_ga_format.R
Format your FB ads data for upload to GA
1 2 3 4 5 6 7 | fb_ads_ga_format(
fb_ads_df,
utm_medium,
utm_source,
utm_term = NULL,
utm_content = NULL
)
|
fb_ads_df |
The data frame of advertisting data from Facebook |
utm_medium |
The medium of the campaign, this should match the values you set in your UTM codes in the URLs in the Facebook ads |
utm_source |
The source of the campaign, this should match the values you set in your UTM codes in the URLs in the Facebook ads |
utm_term |
The relevant keyword of the campaign, this should match the values you set in your UTM codes in the URLs in the Facebook ads (optional) |
utm_content |
The ad content of the campaign, this should match the values you set in your UTM codes in the URLs in the Facebook ads (optional) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.