Not sure if stackoverflow is the appropriate place to post this but couldn't find a better place.
I'm working on a directory style site that has thousands of listings which visitors can submit their details to through a number of methods...
- A single form on each of the listing pages.
- A quick contact button. This triggers a form submission from previously stored user data.
- A bulk enquiry form. Users input their search terms and a form submission is create for each listing matching the search query.
We want a way of tracking the number of submissions per listing in Google Analytics.
I was thinking of sending an event from the server* when the submission process is successful.
*Using the Measurement Protocol.
However, not knowing Google Analytics that well I am unsure what is recommended way to send the page identifier with an event. Form what I can tell, I can't attach an event to a specific page URL but we do have 4 parameters (category
, action
, label
, value
) that we can utilise.
Would an event structure like the below be recommended?
- Category:
Conversion
- Action:
Single submission
|Quick contact
|Bulk submission
- Label:
id:192944
|https://example.com/listing-uri/
Any advice would be really appreciated.