Connected Salesforce + Pardot Campaigns: How They Rock Our World

Salesforce and Pardot connected campaigns bridge two distinct campaign reporting functions into one powerful feature. 

Prior to 2019, Salesforce and Pardot campaigns were independent of each other. But with the introduction of connected campaigns the two entities joined forces. And with that, the humble marketer’s life is made easier. 

The Difference Between Salesforce and Pardot Campaigns

Before we jump in, let’s do a quick 101 refresh on the difference between Salesforce campaigns and Pardot campaigns.

The Skinny on Pardot Campaigns

Pardot campaigns refer to the first touch interaction that could be tracked. It answers the question: “What brought this person to us?”

For example, let’s say someone visits your How to Be Good At Stuff webinar page. They didn’t sign up, came back 30 days later, and converted to a lead by downloading your I’m Awesome at Stuff whitepaper. Their campaign would be set to the How to Be Good At Stuff webinar, since that was the first initiative that brought them to you.

Pardot campaigns are one-to-one. That means each person has ONE source campaign. And every asset created in Pardot has to be tied to one campaign as well.

This gives you useful reporting data on the number of leads sourced by your campaigns and how these convert into closed-won opportunities downstream in the pipeline.

How Salesforce Campaigns are Different

Salesforce campaigns are more… how normal people think about campaigns. Campaigns are marketing initiatives, and each contact or lead can belong to multiple campaigns.

Tracking this in Salesforce is hugely impactful. If you leverage Salesforce campaigns to record who you touch with your marketing efforts, then you’re laying the foundation to be able to show all of the marketing touchpoints that led to a sale on each of your opportunities:

Opportunity Dashboard

And at the campaign level, you can see the total volume of opportunities that were influenced by your marketing activities.

Salesforce Campaign dashboard

Marketers have been talking about revenue attribution for the last decade. But for most organizations, this stops with “talk.” We all like the idea of being able to link marketing campaigns to hard revenue numbers, but our disparate systems and measurements make that incredibly hard to deliver.

Campaign influence reporting finally makes revenue attribution doable for a typical marketing team — all with tools native to the platform. This comes together in first touch, last touch, or any other custom attribution models your team needs to analyze the impact of its marketing spend.

Campaign performance dashboard

How to Set Up Connected Campaigns in your Pardot Org 

The good news is that connected campaigns are automatically activated for Pardot orgs setup after 2019. But, there are a few settings we’ll want to take a look at to make sure everything is functioning.

 The magic is in the Pardot connector!

Connected campaign settings are managed by the connector that bridges Salesforce and Pardot. 

In Pardot Lightning…

  1. Click on Pardot Settings
  2. Connectors (on left menu)
  3. Click the settings cog under Actions on the right for the Salesforce connector
  4. Select Edit Settings

On this screen, you’ll notice the campaign that is being used to connect contacts that come from Salesforce into Pardot. They will be marked with this “first touch” campaign when they sync from Salesforce. If you do NOT have a campaign here, you should create a campaign in Salesforce, something generic like “Salesforce Contacts,” and select it here. 

Question: I created the campaign in Salesforce and it doesn’t appear in this picklist?

This is pretty common. There are three reasons why the campaign would not appear, here are some troubleshooting steps…

  1. When setting up the campaign in Salesforce you must check the box to make the campaign “Active.”
  2. Be patient! It can sometimes take 5-10 minutes for the campaign to appear in Pardot. You may need to refresh the connector settings page to see it appear.
  3. As a last resort, delete the campaign you created in Salesforce and create a new campaign. You might be shocked at how often this solves the problem.
Connector Settings

Let’s Look at Campaign Settings

Once you have the connector settings worked out, click on the Campaigns tab at the top.

Pardot Settings, campaign tab

Let’s take a closer look at the setting options.

  • First, ensure the check box for “Enable Connected Campaigns and Engagement History” is checked. This should already be checked by default, which turns on all the wonderful connected campaign magic. 
  • Enable Campaign Member Sync should also be checked to ensure that when you add people to your campaign in Salesforce or Pardot they stay in sync. Note: If you add people to a campaign in Pardot but they do not exist as Contact or Lead records in Salesforce, you will not see them in Salesforce under that particular campaign. 
  • Use Salesforce to manage all campaigns should be checked allowing you to create and manage campaigns in one place — Salesforce! No more duplicating efforts in Pardot.
  • Limit Campaign Creation by Date – this handy feature gives you the ability to limit what campaigns sync to Pardot. If your Salesforce org has been around for a while, it undoubtedly has campaigns that were created and you may not wish to clutter Pardot with old campaigns. You can select a cut-off date here!
  • Show unconnected campaigns in Pardot Campaigns tab is good to check if you wish to see what campaigns in Pardot are not connected to Salesforce. As the subtext under the box states: Unconnected campaigns are always shown unless Manage Campaigns in Salesforce is enabled.
  • Finally, Campaign record types enabled for connection. This will say “Master Record Type” by default if you only have one Salesforce campaign record type. But some orgs are fancy and have multiple record types for different parts of the business. If this is the case, you can select which record types should sync to Pardot.

Once Connected Campaigns are flowing here’s what you’ll notice

  • All new campaigns will be created in Salesforce — you can not create campaigns in Pardot.
  • Every time you add a new active campaign to Salesforce, it’s automatically available in Pardot.
  • You can add campaign members in Pardot through automation rules or completion actions. As long as they are assigned to a user, they will sync to Salesforce and show up as members of that campaign in Salesforce. 

PRO TIP: If you have a campaign set up for a weekly or monthly newsletter, add a completion action to your signup form. This ensures that when a prospect fills out the form, they are automatically added to that campaign.

These campaign fields will also be updated by Salesforce and pushed to Pardot:

  • Name
  • Cost
  • Created By
  • Updated By
  • Updated At

Now for the Really Exciting Stuff: Show Engagement History on the Campaign in Salesforce & Report On It

To add another layer of awesomeness to this, Connected Campaigns allows you to also enable Engagement History on Salesforce campaigns.

What this means is that on Salesforce campaigns that are connected to Pardot campaigns, you can pass engagement metrics from:

  • List emails
  • Forms
  • Form handlers
  • Links & custom redirects

When you turn on Engagement History, new custom objects called ListEmail, MarketingForm, and MarketingLink are created and populated with data from corresponding Pardot records. These records DO count against your org’s data storage limits. 

Important: these custom objects do need to be added to your Campaign page layout! Here are detailed instructions to do this.

Benefits of Enabling Engagement History

Enabling Engagement History lets you add KPIs for these assets to the Campaign Page Layout:

Engagement History

And even better, it lets you get at this data in Salesforce reports & dashboards:

campaign report

My heart literally flutters with anticipation of the power this is going to bring to marketers on the platform.

 A few general FYIs on what you need to make Engagement History work:

  • Connected campaigns set up (duh)
  • Prospects syncing with a Salesforce lead or contact, and added to the connected campaign
  • The prospect must be assigned to a user, group, or queue in Salesforce (a requirement for it to sync to Salesforce in the first place)
  • To access Engagement History data, users need the Sales User or CRM User standard permission set and field-level security access to the engagement history fields.

Ready to Roll with Salesforce and Pardot Connected Campaigns?

Once you experience connected campaigns, there’s no going back. (Literally and figuratively. Once it’s on, it can’t be turned off.)

To make this magic happen, you will need your Salesforce admin on board, since a lot of the configuration changes take place inside Sales Cloud. 

Do you utilize the power of connected campaigns? What’s your experience been? We’re dying to know — please share with fellow readers in the comments!

Original article: Connected Salesforce + Pardot Campaigns: How They Rock Our World

©2022 The Spot. All Rights Reserved.

The post Connected Salesforce + Pardot Campaigns: How They Rock Our World appeared first on The Spot.

By |2022-09-19T14:37:00+00:00September 19th, 2022|Categories: Analytics & Reporting, Data Management, Pro Tips, revive|

Salesforce Native Reporting: Get More From Your Data

Salesforce has robust native reporting capabilities that come out of the box. But what happens when you need more? What CAN you do? 

This Salesforce native reporting overview will make you a custom operational reporting superstar. That’s because it highlights the ways you can leverage custom objects and use joins in your reporting. 

The good news is, once you know what’s possible, the world of Salesforce reporting is much easier to navigate.

Where to Start: Create a Lookup Relationship on a Custom Object

We’re going to start by going through the process of creating a lookup relationship on a Salesforce custom object.

Why start here? In short, all Salesforce reporting is based on relationships between objects. 

Let’s say you have a custom object where you store all of your team’s required compliance paperwork. You want to report on which opportunities need which paperwork within that custom object. 

While you can create a custom report type for your custom object, there is no link between Opportunities and your custom object. 

The good news is that you can create one! 

Example: Creating a relationship between custom object and Opportunity

Here’s an example that we can use as we move through our reporting exploration. Specifically, these are the steps to create a relationship between a custom object and an Opportunity in Salesforce:

  1. Open the custom object. In this case, I have created a custom object called “Compliance Documents.”
  2. Select Fields & Relationships.
  3. Select “New” to create a new field.
  4. Select “Lookup Relationship.”
  1. Select “Opportunity” as the Related to. This will create the relationship between Opportunity and the custom object, making them “linked” for reporting and other related purposes.
  2. If you want the relationship to be consistent and there should be a value selected, make sure to select “Always require a value in order to save the record.” Also make sure that “Add this field to existing custom report types that contain this entity” is checked.
  3. Click through the next few screens to verify permissions, Related list label and select what layouts to the new field to.

With these steps, you can now add the custom object in a report type AND the related list will appear for the Opportunity. So easy, right?

Exploring Salesforce Custom Report Types

So, now that we have linked our custom object with a lookup relationship, let’s get ready to report!

Use the following example to inspire your use of native Salesforce reporting capabilities.

Use Case Example: Set up a custom report type 

You want to be able to see what type of compliance reports have been completed (and what opportunities do NOT have documents) for your Opportunities. To accomplish this, we will set up a custom report type. 

  1. Go to Setup and select “Report Types.”
  2. Click “New Custom Report Type.”
  3. Select the Primary object (see tip below for more information).
  4. In our case, we will use Opportunities as our base object. We are interested in both Opportunities that have documents AND those that don’t. So, we’re calling it “Opportunities with or without Compliance Documents.”
  1. Now we can select the related objects. In this case, we want to see Compliance Documents. 

Because our custom objects were created to support Activity creation, and Activity creation links to the Assignment object, we can add all these to maximize our report.

NOTE: We are selecting “A” Records may or may not have “B” records so we can see how many of our total Opportunities have records. If we selected Each “A” record must have at least one “B” Record, we would ONLY see these records and not be able to compare (which will be handy in our report).

  1. Save your changes.

Tip: What is the Primary Object?

The primary object is the “base” Object for your report. You can select a custom or standard object. To decide which to select, consider what fields you want and whether they are connected as you select these. 

Remember that all reporting starts with relationships between objects. One tool that can help you “see” the relationships in Salesforce is the Schema Builder in setup, which is where you can select your objects and get a visualization of how they are connected. 

Good news for us, Salesforce report types makes this easy by only allowing you to select objects that are related and have lookup relationships. If you don’t see a child object, it’s because there isn’t a defined relationship. 

Add Lookup Fields in Salesforce Custom Report

So, great news! You have connected your custom object to a standard object and created a new report type. But what other data can we add from here? 

Let’s see what we can add using the “edit layout” section of the Report Type.

  1. Click on “Edit Layout”
  2. On the left, you can dropdown the list under “view” to see the objects in your report type.
  1. Use the “Add fields related via lookup” to see what you can add to your report from other related objects.
  1. You can see all the objects that have a relevant relationship to “opportunity” in this window. Clicking on the object name allows you to select fields to add to your report.

    In the example above, I am adding Account Name and Account Number. You can change the view to show any of the objects in the custom report type to select related fields. You can see which fields were added by lookup easily since they have a magnifying glass next to them in the layout window.

NOTE: Watch out for duplicate fields. For example, if I select the ID for Account using the related lookup, I will end up with two almost identically named fields when creating reports, which could be confusing. Not all lookup fields contain data. If a field is not required in a related object field, you may not get any additional data (just empty fields)

  1. You can add sections, add and remove fields and do many other fun things in this window, but we’ll move on to creating our report with our shiny new report type! (more information on working layouts here.) For our use case, we are ready to move on.

Creating a Report Using Your Custom Report Type

Finally all your work will come together in an amazing report! Let’s jump in!

  1. Go to Reports
  2. Click on “New Report”
  3. Be sure to select “all” to search for our New Custom Report type
  1. On the right, you can quickly see what reports have been created with this report type and what objects are included. Click on “Start Report”. You can add whatever fields you need.

Using Cross Filters to Filter Records Based on Related Objects

Now that I have a report in progress, what else can I do to use other objects with it? One example of this is a cross filter. 

A cross filter allows you to filter your report type based on a related object. For example, If I have a report type based on opportunities, I can use a cross join to limit the results to opportunities that have related campaign influence records (without actually having to include the Campaign Influence object in the custom report type).

  1. Click on “Filters”
  2. Select the drop down next to filters and select New Cross Filter
  3. Select Opportunities as the “show me” and Campaign Influence as the limiter

    NOTE: You can use “With” or Without” as the criteria to return records.

TIP: Check out the Sercante Campaign Influence Starter Pack for more information.

Using Joined Reports in Salesforce to Enrich Your Data

Joined Reports in Salesforce are a little tricky to understand but can be VERY practical. Here’s how the feature works.

Consider the following use case. You want to be able to show Products on Opportunities related to those with compliance documents. Your custom report type does not have Product information. 

No worries at all! If there are related fields between the two report types, you can join them together in blocks.

Here’s how to do that:

  1. Click on “Report” at the top left of your report window.
  2. Click on “Joined Report,” and click apply.
  1. Click on Add Block.
  2. Select the Opportunities with Products block.
  1. Use the lookup window under “Group Across Blocks” to pick the field you want to group on. This will create a connection on a common field. 

In this case OpportunityID is most appropriate since I want to see detail for each opportunity. You can now see the fields I selected from my Custom Report type and fields I selected from the Opportunities with Products report.

NOTE: Once you create a Joined Report, you also need to manage filters for each one separately under the filter area. 

Now you can see how the Joined Report enriches your data! We can see if any Opportunities with or without documents have products linked.

So what happens now?

In our little summary we have reviewed the ways in which you can show data in Salesforce reports through Lookup relationships on objects for the following:

  • Custom reports types
  • Lookups on Custom report Types
  • Joined Report
  • Cross filters

The wonderful world of Salesforce Reporting is constantly changing and improving with every release. Knowing what you can do to bring your data together is the key to creating meaningful, actionable reports. 

I hope this summary helps in your understanding of what’s available and related use cases.

Looking for information about Salesforce native reporting?

Salesforce has a wonderful help section with videos and how tos that can help you on your journey. And remember, you can always reach out to the team at Sercante if you have any questions. 

Tell us what you’re going to build using Salesforce native reporting capabilities in the comments section.

Original article: Salesforce Native Reporting: Get More From Your Data

©2022 The Spot. All Rights Reserved.

The post Salesforce Native Reporting: Get More From Your Data appeared first on The Spot.

By |2022-09-16T14:21:00+00:00September 16th, 2022|Categories: Analytics & Reporting, Data Management, Pro Tips, revive|

Demystifying Pardot B2B Marketing Analytics Plus

With Pardot B2B Marketing Analytics Plus, you are able to bring external data, use an intuitive and customizable dashboard, activate Discovery Stories, and take advantage of Einstein Prediction Builder.

Difference between B2BMA and B2BMA+

B2BMA B2BMA+
B2B Marketing Analytics app External connectors
Pardot and CRM data Pardot, CRM and Import data
B2B Marketing Analytics app
Marketing Campaign Intelligence App
ABM App
Discovery Stories
Einstein Prediction Builder
More data

Extracting Data

A case scenario is that there is a lack of visibility into usage as the data sits in an external system, getting it through that B2BMA. Extracting and bringing data is easy with the proper steps taken in B2B analytics. 

Remember that:

  • Dashboards are only as good are your data
  • Data is clean
  • Quality data everywhere
  • Joining in an effective way
  • What questions are you answering?

Customizing Dashboards

A use case example would be that you are missing key usage data from an ABM Dashboard, so you’ll add an additional lens from it. The first thing to do to edit a dashboard is to clone it. Connect it to the right data sources. Drag and drop as easily as you can. 

Remember:

  • Always copy the dashboard before editing
  • Think first about user experience 
    • Who will be using this dashboard?
    • What data will they be looking for?
  • What questions are we answering?
  • Charts were not created equal

Discovery Stories

An example of this use case is how prospects engage with your content and how can you actually improve it? Common questions that Discovery Stories can help with are how are your downloads doing? Or Are there engagements in downloading e-books or whitepapers? Options and suggestions from Discovery Stories will be given in a decision and strategy point of view for the future.

You can identify changes that are predicted to improve. Always remember to:

  • Not neglect combinations
  • Select relevant fields

Einstein Prediction Builder

An example of a case scenario would be a high percentage of leads were being marked unqualified and we didn’t know why so running tests from this capability will prevent this and identify some root causes.

Always remember:

  • Output is boolean or a number
  • What data matters? (e.g. not phone numbers)
  • Don’t include past leads that have already been unqualified

Takeaways

Pardot B2B Marketing Analytics Plus can give you a lot of advantages when it comes to data and being strategic in making decisions from it. There are plenty of capabilities that B2BMA+ offers including bringing external data easily to the dashboard, customization, Discovery Stories, and Einstein Prediction Builder. 

To learn more, click to watch the original video from Jess Pyne here.

Check out more MarDreamin’ videos

Further Reading

Original article: Demystifying Pardot B2B Marketing Analytics Plus

©2022 The Spot. All Rights Reserved.

The post Demystifying Pardot B2B Marketing Analytics Plus appeared first on The Spot.

By |2022-07-12T19:57:00+00:00July 12th, 2022|Categories: Analytics & Reporting, Data Management, Pro Tips, revive|

Using Pardot B2BMA as a Data Audit Tool

In this blog, we will talk about data completeness, data hygiene, and data completeness KPIs to get you to have a better understanding and practice with Pardot B2BMA as an audit tool.

Data completeness

We’ll keep this straight to the point. You aren’t able to make great decisions if you don’t have good data. What is complete data? Are the fields being completely filled out? It’s actually about data you don’t know, what you need to know, and the diversity of sources you’re getting your data from.

How do you know if your data is complete?

Can you make decisions based on the data you have? Are you able to answer business questions or goals based on the data? Complete data does not necessarily mean asking every single question but only asking what you need.

 It’s best to make it targeted data. Knowing where it started, where it’s going, and what’s in the data are great practices to help you.

Data Hygiene

How do we control our data? We’ll start by getting the data we only need. Asking questions that would not be helpful to the goals can be avoided. 

  • Avoid open text boxes for categories like fields on cities/states/country as it will be very difficult to put them together categorically.
  • Be aware of convenience sampling. It is important to guide questions in a certain direction. Are we looking to find the things that we don’t already know yet? 
  • Monitor sources. Where does your data come from and how complete are those sources? Knowing who your population is and getting a proper sample from them is key.

Data completeness KPIs

What is your most actionable data? If you can only know 5 things about each of the people you’re getting information from, what would be the 5 most important information you want to get from them? 

Make prioritizations

Determine what your priorities are. Is it Industry, Geolocation, or Title? 

  • Identify non-actionable data. Are you collecting things because of everybody else? 
  • Determine categories of data to enrich. If you’re looking towards 5 different things that are important to you and you value, categorize them. 
  • Prioritize data enrichment activities. You can’t fix everything all at once. Having a good plan for determining which is the most critical data and how to clean them up will help you do a better job on forms and getting the data cleaner into Pardot. 
  • Measure your progress. It’s better to start a baseline and monitor insights as to what movement you have shown.

Conclusion

There are three critical aspects that can help us use Pardot B2BMA as an Data Audit Tool including data completeness, data hygiene, and data completeness KPIs, all of which are important to making important business decisions and achieving their goals.

Check out the full original video by Dominique Beaudin here. Or, click here to learn about this year’s MarDreamin’ conference. 

Further reading:

Original article: Using Pardot B2BMA as a Data Audit Tool

©2022 The Spot. All Rights Reserved.

The post Using Pardot B2BMA as a Data Audit Tool appeared first on The Spot.

By |2022-06-24T01:21:00+00:00June 24th, 2022|Categories: Analytics & Reporting, Data Management, Pro Tips, revive|

Salesforce Summer ‘22 Release: CRM Analytics Features We Love

The Salesforce Summer ‘22 Release is sending lots of love to CRM Analytics (formerly Tableau CRM) users in the form of updates and new features that make reporting work easier using the tool.

These are the features we’re going to start using ASAP.

What CRM Analytics features are there to love in the Salesforce Summer ‘22 Release?

They said it was coming. They said it would be here soon. Now it’s here. The CRM Analytics data manager has gotten a facelift and some groovy new features. 

Flows are headed out the door. Hello recipe driven data sets! Will you be ready? 

Read ahead to find out how some of these new features will change the way you use CRM Analytics

Reviewing Usage of CRM Analytics limits

Viewing usage is now a breeze! No more wondering what the limits are or how close you are to reaching them. This usage is unique to what’s used by CRM Analytics. I’ve been using this feature since the beta so I can’t even remember how we did it before.

All recipes, all the recipes, all the time (well pretty soon)

The retirement of flows is imminent. No, they won’t disappear, but this release shows that a strong “nudge” is being given to moving away from Data Flow (happy dance on my part).

Side note: the Flow to Recipe conversion (Beta) does not appear to be ready for primetime and flows are not going anywhere any time too soon! 

As part of this transformation, new Recipe features are being released to close the gap.

You now can give each step in a transform a name in a recipe

Before
After

Salesforce resource

The “update” Join is now out of beta! 

Use Case: The update can be used to replace fields with those from another table. For example, instead of joining and adding a bunch of fields, you can update the Campaign name directly in related objects — less complexity and mess! 

Improved Data Sampling in Recipes

Select how you want the preview to work! 

You can now select a “sampling mode.” This is REALLY useful when the results you want to see might not exist in the initial rows returned (like when you are selecting filters). No more guessing when bucketing and filtering your values!

Salesforce resource

Connections screen that connects with your needs 

The connections area now has a simpler layout. That means seeing what’s available for use has never been easier. You can also view filters, multi values and other specific information about your connected data sources in one screen. 

When selecting connectors (add connector) you can now pick the type easily and see what options are available (and the list is growing). Open any object to see the new streamlined layout!

Improved Data Manager Layout

 It’s now super easy to see what’s happening, happened or will happen!

And finally, a small but wonderful change…. The status “circle” in Data manager now actually means something. The “green” shows how much of the recipe/dataflow has run so you can have some idea of how far into the process your data generation has gone!

Salesforce resource

See all the possibilities in CRM Analytics 

Maybe one of the most compelling things about the changes has nothing to do with what you can do, but with what you can now easily SEE. With all the possibilities becoming more visible, I anticipate many CRM Analytics admins and users digging into more of what the product has to offer.

Let us know what you’re working on in the comments section or reach out to us here.

Happy reporting everyone! 

Further Reading

Original article: Salesforce Summer ‘22 Release: CRM Analytics Features We Love

©2022 The Spot. All Rights Reserved.

The post Salesforce Summer ‘22 Release: CRM Analytics Features We Love appeared first on The Spot.

By |2022-06-21T14:34:00+00:00June 21st, 2022|Categories: Analytics & Reporting, Data Management, New Features, Release Notes|

Why Should Marketing Admins Have Salesforce Access?

Getting marketing team access to your Salesforce org breaks down company siloes and can lead to enriched data you can use for things like Einstein campaign reporting.

So, you want to make the case for getting your marketing team’s hands into your company or organization’s Salesforce org. But, you’re having trouble making the case to the team that manages it.

The team may come back to you with things like,

Why do you need to get into our Salesforce org?

and

Don’t you have your own marketing automation program and mailing lists?

Well, this post is going to help you make the case for getting marketing admin access to your Salesforce org.

Salesforce needs interconnectivity to fulfill its data hub destiny

Think of Salesforce (a.k.a. Sales Cloud/Service Cloud) as your one stop shop for all your data. 

When you’re working for a company with multiple departments, or at an enterprise-level company with many locations and lines of business, you have multiple technology tools that connect to Salesforce and enrich that data. For example, your marketing team uses automation programs for email marketing and your 

And the reality is, you are one person. So, you can’t possibly know all the ins and outs of each tech tool that’s connected to your Salesforce org. 

All the Salesforce admins can live in harmony with shared access

The good news is that other tools probably have their own admins and experts who are part of your company or organization. 

These technology specialists can be your best friend when it comes to troubleshooting something between that tool and Salesforce. But, they can only be an effective best friend if they have the right level of access in Salesforce. 

Otherwise, you’re going to be an annoying best friend who asks them to look at a bunch of things you could easily look at yourself to solve the issue. 

What I’m trying to say is they become a bottleneck — unintentionally or intentionally. 

Build a process to prevent issues from Salesforce user access

They are probably thinking, 

but I don’t want anybody to mess up the Salesforce system I’ve worked so hard to build.

And it’s understandable.

I’m here to tell you that admins can give you access and ask you not to change something in the system without going through the proper process. 

Yes, that means they have to instill trust in you. That’s what makes a good team! 

Understand the Salesforce user roles

The Salesforce Marketing User in Sales/Service Cloud can create, read, edit, and delete records they can access, and they can import leads.

If you’re granted access to Sales Cloud through an Admin role, or something custom, be sure the person communicates the specifics of your user role to you. You should fully understand what you’re capable of before diving in. And the person granting access to you has a responsibility to assign a user role to you that provides an appropriate level of access.

Document a process for marketing users

Work with your Salesforce admin to establish everything marketing users need to know about their level of Salesforce access. Put it all in a document, and remember to include the process for requesting changes beyond the marketing user access level.

Make your case and get the user access you need

In case your Salesforce admin still isn’t sold on the idea of giving you admin access, here are three reasons why they should. Use these to help them understand why it’s so important for the marketing team to have access

Giving marketing users access to Sales Cloud:

  1. Allows troubleshooting to happen quickly. The marketing user doesn’t have to ping the Salesforce admin every time they need help with simple tasks for things like reporting or connected campaigns.
  2. Makes other software admins learn how Salesforce works. There’s less back-and-forth communication in the long run! 
  3. Creates shared ownership among the tools. This means less finger pointing and more collaborative ownership to build and troubleshoot.

So, if your Salesforce admin was on the fence about giving you access to Salesforce, I hope this helps you get them to rethink and ultimately grant access. I am confident in saying it’s best for the long run.

Use the comments section to tell us how it goes! Or share your Salesforce admin access stories if you dare.

Original article: Why Should Marketing Admins Have Salesforce Access?

©2022 The Spot. All Rights Reserved.

The post Why Should Marketing Admins Have Salesforce Access? appeared first on The Spot.

By |2022-05-28T12:06:38+00:00May 28th, 2022|Categories: Analytics & Reporting, Data Management, Pro Tips, revive, Strategy|

How To Use a Custom Opportunity Amount Field in Salesforce Campaign Influence Reports

Picture the scene… You’re using a custom amount field on your opportunities (or even multiple amount fields) in Salesforce. You notice that your Salesforce Campaign Influence reports are not showing any data. You have an amount value on all your opportunities, and you’re using custom roles.

So, why is nothing working?*

The standard Salesforce Opportunity Influence model (and the associated reports) work on the basis that you are using the standard Opportunity Amount field. But more often than not, business operations are far from the “standard” processes. 

*It is assumed at this point that all other Campaign Influence set up items and prerequisites have been completed.

Going beyond standard amount fields on opportunities in Salesforce

Business models flex and are customized to the business needs. So, there are use cases where populating the one standard amount field on opportunities just won’t work. We also know that Sercante loves to break free of the “standard mindframe” and test the limits of Salesforce!

So how can you use Campaign Influence (and reports) when you don’t use the standard opportunity amount field? 

The recommended option would be to create a Salesforce Flow to update the standard amount field with the values found in your multiple custom amount field(s). But flow can be tricky to navigate if you don’t have the experience.

This post will offer an alternative way to use a custom opportunity amount field in Salesforce Campaign Influence reports that any Salesforce admin will be able to follow and apply. 

Step 1: Create one custom amount field 

If you only have one custom amount field, skip to Step 2. 

If you are using multiple custom amount fields, for example “Estimated Amount” and “Won Amount,” you will need to create ONE custom amount field that populates from your multiple amount fields. You will need to create this custom amount field because you cannot edit the standard amount field. 

I’d recommend you create a formula field using the opportunity statuses to determine which value is shown in the newly created amount field.

Instructions

  1. Create a new custom field on the Opportunity Object
  • Data Type = Formula
  • Formular Return Type = Currency
  1. Create an advanced formula – IF( IsWon = true, Won_Amount__c , Estimated amount__c )

What is this formula doing?

If the opportunity Stage = Closed Won, then the custom Opportunity Amount field will populate with the Amount Won value. However, if the opportunity stage is anything but Closed Won, the value in this field will be populated from the Estimated Amount.

  1. Check Syntax
  2. Set the field-level security 

NOTE: If users cannot see the field they won’t be able to see it in reports or create reports using it 

  1. Add the new field onto your page layouts if you wish. 
You don’t have to add this field to the page layout(s). Not adding this field to the Opportunity page layout would prevent confusion for the sales reps – They would continue to populate the custom Revenue fields as normal
  1. Save

Consideration

I would recommend adding a validation rule that prevents users from marking an opportunity as “Closed Won” without an Amount Won Value. If the opportunity is marked as Closed Won and there is no value in Amount Won, then the Custom Opportunity Amount Field will show £0.

Step 2: Create a custom Campaign Influence Amount field

The Campaign Influence reports and dashboards get their data from the Campaign Influence object. The data the reports need from the Campaign Influence object are: 

  • Opportunity Amount
  • Revenue Share 

Now we have one singular custom opportunity amount field we need to get it onto the Campaign Influence object, so the campaign influence reports have visibility of the data. 

Instructions

  1. Create a new custom field on the Campaign Influence Object
  • Data Type = Formula
  • Formular Return Type = Currency
  1. Create an advanced formula – Opportunity.Custom_Amount_Field__c

What is this formula doing?

This formula is simply pulling in the value found on the custom Opportunity Amount field and adding it to the Campaign Influence object. 

  1. Check Syntax
  2. Set the field-level security 

NOTE: If users cannot see the field, they won’t be able to see it in reports or create reports using it.

  1. Add the new field onto your page layouts if you wish. 
  2. Save

Step 3: Create a custom Campaign Influence Share field

At this point we have:

  • A Custom Opportunity Amount field (if you’re using multiple amount fields, you now have one that populates depending on the opportunity stage)
  • A Custom Campaign Influence Amount field, which simply pulls in the value from the custom opportunity amount field 

The final custom field that needs to be created is the Custom Revenue Share, which is also found on the Campaign Influence object. 

The Standard Revenue Share field on the Campaign Influence object will use the standard Opportunity Amount to work out the revenue share for each campaign and opportunity. 

So, since a custom Opportunity Amount is being used we need to create a custom Revenue Share field, which will replicate the standard behavior using a formula.

Instructions

  1. Create a new custom field on the Campaign Influence Object
  • Data Type = Formula
  • Formular Return Type = Currency

2. Create an advanced formula – Opportunity.Custom_Amount_Field__c * Influence

What is this formula doing?

This formula is looking at the value in the custom Opportunity Amount field and multiplying it by the Influence percentage field (this is a standard field that we do not need to change)

3. Check Syntax

4. Set the field-level security 

NOTE: If users cannot see the field, they won’t be able to see it in reports or create reports using it.

5. Add the new field onto your page layouts if you wish. 

6. Save

Final Outcome

You should now have:

  • Custom Opportunity Amount Field – If you are using multiple custom amount fields this should be pulling in the value from either of these fields
  • Custom Campaign Influence Amount Field – Pulling in the value from the Custom Opportunity Amount Field
  • Custom Campaign Influence Revenue Share Field – Displaying the share of the revenue by using the Custom Opportunity Amount field and Influence field

Step 4: Customize Campaign Influence reports 

If you have installed the Sercante Campaign Influence Starter Pack, then the reports and dashboard that come with this will only work when the standard Salesforce fields are used (Opportunity Amount and Revenue Share). So, you will need to customize these reports and the dashboard (we’ll tell you how to do this next) to include your custom Opportunity Amount and Custom Revenue Share fields. If you have any of your own Campaign Influence reports you will also need to edit these. 

Sercante Campaign Influence Starter Pack – Editing the reports and dashboard 

Step 1. Open Salesforce Dashboards where you will see the Campaign Influence Dashboard that comes with the Sercante starter pack. 

Additionally. open up this link. You will need the images on this page to ensure that when you update the dashboard components you

  • Select the right report
  • Select the correct chart
  • Add the chart title and subtitle 
  • Select the correct Measure

Step 2: Right click the report on the dashboard component and open the report in a new tab

Step 3: Edit the report

  1. Under Columns, remove #Revenue Share and #Opportunity Amount.
  2. Under Columns, add the Custom Opportunity Amount field and Custom Revenue Share (Campaign Influence).
  3. Save and Run.

Step 4. Go back to the Dashboard and click Edit on the dashboard.

Step 5. Edit the individual component in which you just edited its report and use this link as a reference.

  1. Update the report the component uses
  2. Check that the correct chart is used. 
  1. Update the Measure.
  1. Update the component title and subtitle.

Step 6: Save the component and dashboard.

You’ll need to Repeat these steps for each of the other dashboard components.

Begin your journey to the marketing ROI promised land with the Sercante Campaign Influence Starter Pack

We’ve enabled and configured Salesforce Campaign Influence a number of times, and we noticed a pattern of reports and dashboard elements that were useful in getting started. 

So, we consolidated those views down into a report and dashboard package that you can ask your Salesforce Admin to install for free from our Github account. 

Get started here. Or reach out to us with any questions.

Original article: How To Use a Custom Opportunity Amount Field in Salesforce Campaign Influence Reports

©2022 The Spot. All Rights Reserved.

The post How To Use a Custom Opportunity Amount Field in Salesforce Campaign Influence Reports appeared first on The Spot.

By |2022-05-16T17:10:00+00:00May 16th, 2022|Categories: Analytics & Reporting, Data Management, Pro Tips, revive, Strategy|

Einstein Send Time Optimization: A How-To Guide

Balancing all the emails your teams want to send to Prospects versus how many emails the Prospects want to receive is difficult. 

Email your Prospects too often and they may opt out. Email them too little and they may miss the important updates they subscribed for. 

Also, determining when to email your Prospects is always a struggle. Should you split your sends by time zones? Is there a sweet spot that covers most time zones? Does anyone actually read emails on Mondays?! 

Up until now, the best way to tackle these decisions is Dynamic Frequency and Recency lists coupled with the numerous studies concerning which days and times are the best to send emails. However, with Pardot and Einstein, you can let machine learning do this analysis for you and have one less thing to think about.

Note: The 2 Einstein Solutions below are only available to Advanced and Premium Editions of Pardot. 

Optimize your email send times

Einstein Send Time Optimization analyzes the timestamp of sends, opens, clicks, unsubscribes, and spam complaints to determine the optimal time to send a Prospect an email. 

Keep in mind, Einstein Send Time Optimization includes List emails, Engagement Studio Program emails, and Salesforce Engage sends in its analysis. It does not include Operational emails or Autoresponders. 

How Send Time Optimization works in the abstract is a little confusing, but this example from Salesforce’s help doc is great: 

example

Send Time Optimization is only available in emails sent from the new MCAE (Pardot) Lightning Email Builder

When sending a list email from the Lightning Builder, three Send Time options appear:

  1. Einstein Optimized (choose this option)
  2. Send Now
  3. Send Later
Einstein Optimized
  • For “Start Date” enter the earliest day you want the emails to go out. 
  • For “Time,” it takes about an hour for Einstein to analyze the prospects, so set this one hour before the earliest time your email should go out (i.e. If I want the emails to start sending at 9AM, I’ll select 8AM). 
  • Then set your “Send Emails Within” value (up to 168 hours which is 7 days). The gray box at the bottom of the Send Time section will show the latest time your email can go out and will update as you change your “Send Emails Within” value. 

Once your email starts sending, you can monitor how many emails have gone out anytime during the Send Time window by going to Pardot Email > Scheduled > All Scheduled Emails.

What data do you need?

Each Prospect needs to have engaged with an email in the last 90 days. If a Prospect is new or has not engaged within this window, Einstein will recommend an aggregate of your email engagement data. 

Enabling Einstein Send Time Optimization

You’ll enable Einstein Send Time Optimization by going to Setup > Einstein Pardot > Send Time Optimization

Once enabled, it will take up to 72 hours to analyze your data and create your custom model.  

Use Einstein Send Time Optimization to customize email frequency 

Einstein Engagement Frequency (EEF) analyzes Prospect’s email engagement over the last 90 days plus their overall engagement data in the past 28 days to determine if the Prospect is Undersaturated, On Target, or Saturated. 

Similar to Einstein Send Time Optimization, EEF analyses List emails, Engagement Studio Program emails, and Salesforce Engage sends. It does not include Operational emails or Autoresponders. 

So, say for example you have a list of 100 Prospects who all received an email two days ago. You need to send all 100 another email, but you are worried about over emailing them. With EEF, you can run a dynamic list looking at your Recipient list from your first email and see which Prospects are Undersaturated or On Target and could be emailed again. 

Dynamic list rules

Or, even better, you could set up an Engagement Studio Program for the second email, and any future communications, to wait for the Prospect’s EEF status to change from Saturated. 

Engagement studio program

What data do you need?

Each Prospect needs to have engaged in at least the last 28 days, but 90 days is recommended. EEF also requires 5+ variations of emails be sent to at least 10 Prospects within the last 28 days.

Enabling EEF

You’ll enable Einstein Send Time Optimization by going to Setup > Einstein Pardot > Einstein Engagement Frequency

Once enabled, it will take up to 72 hours to analyze your data and create your custom model, a new Prospect default field, Einstein Engagement Frequency, will also be created. 

dynamic list rules

Lean on the machines with Einstein Send Time Optimization

With Einstein Send Time Optimization and Einstein Email Frequency, we can begin leaning on machine learning to make some of the email sending decisions for us.

 If you’ve already started using these two Einstein tools with Pardot, please share your tips, tricks, and findings in the comments!

Original article: Einstein Send Time Optimization: A How-To Guide

©2022 The Spot. All Rights Reserved.

The post Einstein Send Time Optimization: A How-To Guide appeared first on The Spot.

By |2022-05-06T16:00:00+00:00May 6th, 2022|Categories: Analytics & Reporting, Emails & Forms, Pro Tips, revive, Strategy|

Campaign Reporting with Einstein for Marketing Cloud Account Engagement

I have a rather embarrassing story from my pre-Einstein campaign reporting days. 

When I started out as a Salesforce admin (i.e. I got told I was the new admin and that I’d “figure it out.” It was a very small company.) I was also in charge of doing the end-of-quarter reporting on sales and campaigns. 

For attribution, I would manually review every single Closed Won campaign, try to determine the Contacts from the Opportunity notes, tasks, etc., and manually make associations. Primary Campaign Source and Contact Roles were in Salesforce at the time, but no one filled them out. 

So, I just had to go on a fact finding mission. Then I exported all the data into excel and did multi-touch attribution manually. 

In Excel. Ugh.

Sure grandma

Use Einstein to report on Marketing Cloud Account Engagement campaigns

Without the team actively and frequently using Contact Roles, reporting on Campaign Performance was no better. 

I could view who responded to a call to action (CTA) or registered for an event, but reporting on Account Engagement (Pardot) assets + Salesforce campaigns wasn’t really a capability. So, it was also a lot of manual work. 

As much as thinking about these old processes makes me cringe, I’ve heard similar stories from a lot of MCAE admins and marketers. 

Campaign reporting and attribution has come a long way since then — especially since Connected Campaigns and Campaign Influence were first introduced. Now we can easily extend these capabilities with the power of Einstein Machine Learning. 

Note: The two Einstein solutions below are only available to Advanced and Premium editions of Marketing Cloud Account Engagement (a.k.a. MCAE/Pardot). 

Campaign reporting with Einstein Campaign Insights

Einstein Campaign Insights analyzes Prospects’ engagement with your Campaign assets to spot trends and outliers. 

You’ll see two types of insights:

  1. Global Insights: These insights compare the performance of the campaign and assets to other campaigns/assets of the same type (i.e. comparing a single form’s performance to the performance of your other forms)
  2. Segment Insights: These insights shed light on which audiences engage with your campaigns and assets (i.e. Directors opened this email less than other segments).

Einstein Campaign Insights looks for engagement levels that are either higher and lower than usual. 

example

You can also select the dropdown arrow to provide feedback on the Insights and help Einstein improve. 

Einstein insights

What data do you need?

Nearly all data used in the Einstein Campaign Insights model originates from Pardot, so Connected Campaigns must be enabled. Salesforce also recommends having at least 50 Connected Campaigns.

How to enable Einstein Campaign Insights

You’ll enable Einstein Campaign Insights by going to Setup > Einstein Pardot > Einstein Campaign Insights

Once enabled, it will take about 24 hours for your initial insights to appear. Make sure you add the Einstein Insights component to your Lightning record page. 

Analyze campaign performance with Einstein Attribution

Einstein Attribution is Campaign Influence with the power of machine learning. This tool analyzes your campaigns to spot trends and then allocates campaign influence credit to multiple campaigns. 

Einstein Attribution has a few requirements before it can run:

  1. Connected Campaign and Campaign Influence must be set up.
  2. Your org has to be using the standard Opportunity object as well as the default “Close Date” and “Amount” fields.
  3. This tool only looks at Campaign Members with a “Responded” status. Note: This means the “Responded” checkbox needs to be selected for the individual Campaign Member Statuses.
Campaign member statuses

What data do you need?

Salesforce recommends you have at least 100 Opportunities with Contact Roles so Einstein Attribution can analyze which Campaign engagements influence Opportunities. 

Enabling Einstein Attribution

You’ll enable Einstein Attribution Insights by going to Setup > Einstein Pardot > Einstein Attribution

Once enabled, a new Campaign Influence Model called “Data-Driven Model” will be created. To set this as the default over what is specified within Campaign Influence, select the “Use this model as the Campaign Influence default” checkbox.

Enable Einstein Attribution

Set your Campaign Influence Time Frame

Next, set your Campaign Influence Time Frame (3 months to 2 years). This limits which campaigns are considered influential. 

For instance, you probably wouldn’t want a webinar from 5 years ago to get credit for an opportunity created today. I recommend this time frame be 2-3 times your typical sales cycle. 

If you plan on comparing the Data Driven model to the out-of-the-box Campaign Influence models (First Touch, Last Touch, and Even Distribution), make sure the “Set Campaign Influence Time Frame” setting here matches your Auto-Association “Campaign Influence Time Frame.” You can find this by going to Setup > Campaign Influence > Auto-Association Settings. If these two time frames are different, you will see a difference in the Total Attribution in your reports and dashboards. 

campaign influence and multitouch attribution

Select your Success Milestone

Finally, select your Success Milestone. This should be the Opportunity Stage that indicates an Opportunity is legitimate. 

Out-of-the-box Campaign Influence uses the Opportunity creation date as the Success Milestone, but in reality, a Salesperson may open an Opportunity before ever getting the Lead/Account involved. 

Note: Your Data Driven model and the out-of-the-box Campaign Influence models may also show a different Total Attribution number if your Milestone is an Opportunity Stage after campaign creation. 

In the example below, I’ve used my Proposal/Quote stage as the Success Milestone because this stage indicates the Lead/Account is involved and is considering making a purchase. 

data driven model

Salesforce admins have it so good these days

If I had these Einstein campaign reporting tools back when I started my journey as an admin, I would have saved so much time! 

These tools still save me time today and I love not having to worry about if my reports and attribution have the most complete information. 

Are you using Einstein Campaign Insights and Attribution in your org? Or do you have an embarrassing admin story to share? Tell us in the comments!

Original article: Campaign Reporting with Einstein for Marketing Cloud Account Engagement

©2022 The Spot. All Rights Reserved.

The post Campaign Reporting with Einstein for Marketing Cloud Account Engagement appeared first on The Spot.

By |2022-05-03T14:20:00+00:00May 3rd, 2022|Categories: Analytics & Reporting, Data Management, Pro Tips, revive|

Capture Lead Source Data Using Cookies and Google Tag Manager

Looking for a way to capture lead source data from across pages on your website and pull that data into your CRM? 

Since we use Marketing Cloud Account Engagement (Pardot), we figured out how to do that by transferring UTM parameters across webpages and capturing them in a Pardot custom field. 

Using a magical mixture of UTM parameters and Google Tag Manager with a Pardot custom field and third-party forms, here’s our solution for capturing pre-form fill visitor data in Pardot. 

However, you can use your imagination to take this solution further and send the data to any CRM that allows you to capture data in a custom field.

What is a lead source?

A lead source establishes how a prospective customer first engaged with your business. That can be through your website, by phone, by email or even visiting your location in person. 

Most lead sources originate through advertising, social channels, word-of-mouth, referrals, or even location signage.

Why does the lead source matter?

Understanding how buyers find your business serves two purposes:

  1. It improves the buyer’s journey. You can use the information to be more relevant and responsive  with highly tailored content, interactions, and communications, leveraging the channels and sources your audience prefers. 
  2. It reveals the most effective channels and methods. Having insights into lead sources helps you build awareness, connect and engage with buyers by focusing on what works.

How to track marketing parameters via UTM

The best way to gain digital lead source insight is to use UTM (Urchin Tracking Module) parameters. UTMs are variables that are passed to your website via the link a buyer clicks to get to your website or landing page. 

As the standard for tracking lead sources, UTMs play an integral role in providing data to Google Analytics and other marketing analytics platforms. 

Setting up UTM parameters is super easy by using a handy tool provided by Google Analytics. Remember to create a consistent naming convention so when you add them to your links you’ll be able to easily identify key data points when viewing your reporting.

Why do I need source cookies?

Capturing a UTM parameter on your web form can be tricky. If a user visits a page with a form through a UTM URL and submits the form, the UTM parameters get captured. However, if a user visits a page through a UTM URL and navigates to another page on the website, the form submission is unable to capture the UTM parameter values. 

To solve this dilemma, we used Google Tag Manager (GTM) to implement a cookie on the first page visit and then populate the hidden fields with the stored UTM values.

How to capture lead source via a Marketing Cloud Account Engagement (Pardot) form handler

The steps to capturing your lead source data in Pardot are as follows:

Step 1. Set up Pardot Form Handler

Create a new form handler in Pardot. Magic Wand > Marketing > Forms > Form Handlers.

  • Add information about your form:
    • Name – This will not be seen by the visitor, so use a naming convention that will help you understand the form’s purpose.
    • Folder
    • Tags
    • Campaign
    • Tracker Domain
      • Do NOT check kiosk/data entry mode
      • Check “Enable data forwarding to the success location” only if pushing data to a location other than Pardot.
      • Only check “Disable Activity throttling” if you wish to send auto-responder emails after every submission. A time buffer is set by Pardot to prevent a visitor from duplicating completion actions or emails if they repeat a form submission too quickly. Still not sure? Read more here.
    • Add Success Location URL – Either add a new URL ‘Thank You’ page or send them back to the referring URL.
    • Add Error Location URL – Either add a new URL ‘Error’ page or send them back to the referring URL.
  • Add Completion Actions
  • Add Form Fields 
    • Set up your fields in Pardot if not already there
    • Map fields to third-party form by field “name” not the label. These must match exactly or the form handler will not work.
      • e.g.,  <input type=”text” id=”fname” name=”fname”>
      • Do NOT make them “required”
  • Copy the endpoint URL of your newly created form handler and add that to the third-party form.

Step 2. Configure your third-party form

To capture the UTM parameters we determined we want to use, we have to include the following eight HIDDEN fields on the third-party form and do NOT set as required:

  1. utm_source 
  2. utm_medium 
  3. utm_campaign 
  4. utm_content 
  5. last_utm_source 
  6. last_utm_medium   
  7. last_utm_campaign 
  8. last_utm_content

In our example, we are using a Gravity Form. But this should work with most forms. 

Step 3. Capturing a cookie using Google Tag Manager (GTM)

UTM information is only visible on the page it first lands on. If the user goes from one page to the next on the website, the UTM information disappears. 

Add Persist Campaign Data (3rd Party) Template 

There’s no need to reinvent the wheel. Use the 3rd party template, Persist Campaign Data.

  • Click the Tags tab > New
  • Click inside “Tag Configuration” box
  • Search for Persist Campaign Data

What does this container do? It will first look for URL parameters that can be edited. But out of the box, it is looking for anything with utm_source, utm_medium, utm_campaign, utm_term, utm_content, utm_it, gclid. 

This container will store a 2 cookies:

  1. __gtm_campaign_url
  2. __gtm_referrer
  • Click Triggering and select ‘All Pages’ – This will ensure your tag will fire no matter what page a user enters from.

Add a Cookie Variable

We now need to be sure the web tracking cookie we are grabbing is in the correct format.

  • Click Variables
  • Name Variable: cookie-__gtm_campaign_url
  • Variable Type: 1st Party Cookie
  • Cookie Name: __gtm_campaign_url

Check the box: URI-decode cookie

If you preview in debug mode you should now be able to see the cookie set. 

How do you see tracking cookies in Google Chrome? 

  1. Right click on browser window
  2. Choose ‘Inspect’
  3. Choose ‘Inspect’
  4. Choose the Applications tab
  5. Check installed cookies

Add UTM parameters to your form

Now that the cookie is set and working, let’s add the important parts to the form we already created.

  • Click Tags
  • Name the new tag:  utm_form_tracking
  • Tag Type: Custom HTML 
  • Drop in the HTML Script:
<script>
// Parse the Cookie
function getCookie(cname) {
	var name = cname + "=";
	var decodedCookie = decodeURIComponent(document.cookie);
	var ca = decodedCookie.split(';');
	for(var i = 0; i <ca.length; i++) {
		var c = ca[i];
		while (c.charAt(0) == ' ') {
			c = c.substring(1);
		}
		if (c.indexOf(name) == 0) {
			return c.substring(name.length, c.length);
		}
	}
	return "";
}
// Parse the URL inside Cookie
function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)");
    results = regex.exec(getCookie("__gtm_campaign_url"));
    return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
// Pass the values to hidden field 
document.querySelector("input#input_3_9").value = 
getParameterByName('utm_source');  	document.querySelector("input#input_3_10").value = getParameterByName('utm_medium');  	document.querySelector("input#input_3_8").value = getParameterByName('utm_campaign');  	document.querySelector("input#input_3_11").value = getParameterByName('utm_content');
</script>

Change the JavaScript to match the gravity form field values.

  • Set up a Trigger – This will fire the HTML JavaScript code when the cookie fires
    • Name Trigger: trigger_utm_script
    • Trigger Type: Page View – DOM Ready
    • References to this Trigger: utm_form_tracking 

Test your results

You can change the Field Type to text or not hidden while testing your form. Just be sure to flip it back. 

Here is a handy tool that will allow you to easily add campaign parameters.

Watch the full tutorial video

Limitations to capturing lead source data

A caveat — this solution will work for unique visits. However, since it uses cookies, it doesn’t track accurate visitor data across multiple visits. So, if the person visits your website many times before completing a conversion form, then you’ll only have data from the last cookied visit. 

We’re still cooking up that solution, but we’ll share it when it’s ready. 

We’d love to hear suggestions from the community for solving that problem. Or let us know how you did in the comments.

Original article: Capture Lead Source Data Using Cookies and Google Tag Manager

©2022 The Spot. All Rights Reserved.

The post Capture Lead Source Data Using Cookies and Google Tag Manager appeared first on The Spot.

By |2022-05-01T00:27:00+00:00May 1st, 2022|Categories: Analytics & Reporting, Emails & Forms, Pro Tips, revive|