Apps: Google Analytics
On your website, you are asking your visitors to make a long operation, for example filling a form, and you want to know what is the average time took to accomplish it. We will describe actions from a general point of view, but by following those pieces of advice, you should be able to create an event using advanced data based on user action. Since this event is user action-dependent, the trigger should be the "page interaction".
To use the page interaction trigger, please refer to the relevant article, you should select an element and an action on your website that will clearly show the end of the operation you want to track. And since sometimes, selecting the action on an element is not enough, we also recommend you to limit this event to a portion of your website as described above.
By using the "Time on page" value and connecting it to the Google Analytics app, you will be able to directly use it in the report. Open it, select track time and please give a look to the third row, "Time (num)": a dynamic value has been selected.
Once done, you can save your event and begin to test it.
This guide is a simple use case to describe how to send a data value to google analytics. The guide is describing how to send a page name to Google Analytics. Keep in mind that this process is applicable on any data value you want to send to Google Analytics and not only the page name. The only difference is how the event is built to fetch the data value you want to send.
Sending the page name
Add a trigger that corresponds to your need. The majority of analytics events are triggered on a page load since most analytics reports are based on page loads, as in this case.
Now create the conditions needed for the event and make sure the value you want to send to Google Analytics is available.
In this case the building block “Page title” is suitable.
Under the category “Tags” your Google Analytics tag will be present if installed. Insert the Google Analytics app by double click on it.
Connect the Page title to the Google Analytics tag. This is done in order for the google analytics element to send the intended value i.e. page title.
Then, click on the “Google Analytics element” to display the options. Select the Google Analytics variable, “Virtual page view”.
After clicking OK, Save the event.