1. Configure Adobe Analytics
Before configuring Adobe Analytics, create:
- An Adobe ID to log on to Adobe Experience Cloud.
- A report suite.
Install AEM Forms and Adobe Analytics extensions
Perform the following steps to configure AEM Forms and Adobe Analytics extensions:
-
Log on to Adobe Experience Cloud and select an appropriate name for the company.
-
Select Launch/Data Collection and select Go to Launch/Data Collection.
-
Select New property and specify a name for the configuration.
-
Specify a domain name and select Save to save the property.
-
Select the configuration name available in the list of Tag Properties.
-
In the Authoring section, select Extensions.
-
Select Catalog and select Install for the Adobe Experience Manager Forms extension. Adobe Experience Manager Forms displays in the list of installed extensions available in the Installed tab.
-
Select Install for the Adobe Analytics extension.
-
Select the report suite name in the Development Report Suites, Staging Report Suites, and Product Report Suites drop-down lists and select Save to save the extension.
Configure data elements
You can select any of the configured data elements in a rule created for an event. When an event occurs on an adaptive form, AEM Forms sends these data elements to Adobe Analytics.
After installing the Adobe Experience Manager Forms extension, you can create the following data elements:
Perform the following steps to configure data elements:
-
In the Authoring section, select Data Elements.
-
Select Create New Data Element.
-
Specify a name for the Data Element. For example, Form Title for FormTitle data element type.
-
Specify Adobe Experience Manager Forms as the Extension name.
-
Select the Data Element Type.
-
Select Save to save the data element.
Configure rules
Perform the following steps to create rules based on the Adobe Experience Manager Forms extension:
-
In the Authoring section, select Rules.
-
Select Create New Rule.
-
Specify a name for the Rule. For example, Form Submit to record form submissions.
-
In the Events section, select Add.
-
Specify Adobe Experience Manager Forms as the Extension name.
-
Select the event type. The input for the Name field populates automatically based on the selected event type.
-
Select Keep Changes to save the event.
-
In the Actions section, select Add.
-
Specify Adobe Analytics as the Extension name.
-
Select Set Variables as the Action Type. The options available in the drop-down list include:
-
Set Variables: Use this action type to define the event type for which the selected data elements are sent from AEM Forms to Adobe Analytics.
-
Send Beacon: Use this action type to send data from AEM Forms to Adobe Analytics.
-
Clear Variables: Use this action type to clear the data trail so that the event registers only once in Adobe Analytics.
The recommended approach is to use the Set Variables action type to configure the event and data elements, then use Send Beacon to send data, and then use Clear Variables to clear the data trail.
-
-
In the Props section, map the report suite options available in the drop-down list with the data elements defined using Configure data elements.
For example, to send Form Title data element from AEM Forms to Adobe Analytics when you submit a form:
-
In the Props section, select a prop for Form Title available in the report suite and then select
-
Select Add Another to add more data elements to the list.
-
-
In the Events section, select an event from the options available in the report suite and select Keep Changes.
-
In the Actions section, select + and specify Adobe Analytics as the Extension name.
-
Select Send Beacon as the Action Type. In the right pane, Select s.t() to send data to Adobe Analytics and treat it as a page view or s.tl() to send data to Adobe Analytics and do not treat it as a page view. Select Keep Changes.
-
In the Actions section, select + and specify Adobe Analytics as the Extension name.
-
Select Clear Variables as the Action Type. Select Keep Changes. After performing these steps, the Actions section displays as:
Customize the Actions section according to your requirements. For example, you can define two Send Beacon steps in an Actions flow to send data to Adobe Analytics and treat it as a page view in one step and send data to Adobe Analytics and do not treat it as a page view in the second step.
-
Select Save to save the rule.
You can create rules for all event types, such as Abandon, Error, Field Visit, Help, Render, Save, and Submit.
Publish flows
After creating the data elements and using them in rules, publish the configuration to collect form data in Adobe Analytics.
Perform the following steps to publish the configuration:
-
In the Publishing section, select Publishing Flow.
-
Select Add Library and specify a name and select the environment for the library.
-
Select Add All Changed Resources and then select Save & Build to Development.
-
In the Development section, select
-
Confirm the changes and the publishing flow soon displays in the Published section.
2. Configure AEM Forms
Before creating Adobe Launch configuration, create an Adobe IMS Configuration using Adobe Launch as the Cloud Solution.
Create Adobe Launch Configuration
Perform the following steps to create an Adobe Launch configuration:
-
On the AEM Forms Author instance, navigate to Tools > Cloud Services > Adobe Launch Configurations.
-
Select a folder to create the configuration and select Create.
-
Specify a title for the configuration in the Title field.
-
Select the associated Adobe IMS configuration.
-
Select the name of the company used while configuring Adobe Analytics.
-
Select the name of the property created while configuring Adobe Analytics.
-
Select Save & Close.
-
Publish the configuration.
Enable Adobe Analytics for an adaptive form
To use Adobe Launch configuration in an existing Adaptive Form:
- On the AEM Forms Author instance, navigate to Adobe Experience Manager > Forms > Forms & Documents.
- Select the Adaptive Form and select Properties.
- In the Basic tab, select the configuration container used while creating the Adobe Launch configuration.
- Select Save & Close. The Adaptive Form is enabled for Adobe Analytics.
- Publish the form.
After you enable Adobe Analytics for an adaptive form, you can validate if there is an appropriate data event flow between AEM Forms and Adobe Analytics. The integration of AEM Forms with Adobe Analytics is complete. You can now configure and view reports in Adobe Analytics.
Create rules to capture custom events (Optional)
Create rules on specific fields of an adaptive form using rule editor to send Analytics data from an adaptive form to Adobe Analytics.
In a two-stage process, you define a rule on a field in an adaptive form. The rule dispatches an event. The name of event is mapped to a custom capture event in Adobe Launch.
To create rules using rule editor in an adaptive form:
- Select the field and select
- Define a condition in the When section of the rule.
- In the Then section of the rule, select Dispatch Event from the Select Action drop-down list.
- Specify the name of the event in the Type Event Name field.
For example, if the date of birth is before a certain date, AEM Forms dispatches the Security event.
To map the event to a custom capture event in Adobe Analytics:
-
In the Events section, select Add.
-
Specify Adobe Experience Manager Forms as the Extension name.
-
Select Capture Custom Event from the Event Type drop-down list.
-
Specify the name of the event that you specified in step 4 while creating a rule using rule editor.
-
Select Keep Changes and perform the rest of the actions specified in Configure Rules.
3. Configure and view reports in Adobe Analytics
After configuring an adaptive form to send event data to Adobe Analytics, you can start viewing reports in Adobe Analytics:
-
Select
-
Select Create Project and select Blank project.
-
Select the report suite name from the dropdown list at the top-right of the freeform.
-
Specify Form Title in the Search dimension items text to view all form titles.
-
Drop the adaptive form title to the Drop a segment here (or any other component) text box.
-
From the Metrics section, drop the events to track to Drop a metric here (or any other component) text box.
-
Select
-
Select Ctrl + S keys and specify a name to save the project.
For detailed information on viewing forms analytics reports, see Viewing and understanding AEM Forms analytics reports.