tracking a page with a form on it and triggering an event

By: Shawn Fawcett | Asked: 06/08/2022
ForumsCategory: How-totracking a page with a form on it and triggering an event
Shawn Fawcett asked 3 years ago
I would like to trigger an event for a specific page view with a form on it. The page has a Formidable form but I want to track/trigger the page view before the person submits a form. Can I do this within Formidable or anything else? Any advise would be welcome!
Bobby Clapp replied 3 years ago

Like track page views or actually trigger some custom code?

Shawn Fawcett replied 3 years ago

Both. Definitely track page views AND enter that data in a formidable form. And in some situations Trigger an event.

Example. I have specific pages for clients linked to QR codes. If someone scans that QR code and goes to that page, it needs to be recorded and if say they have instructions to be texted when that page is viewed I need to do an api call to Twilio or Integromat to send that text and perform other tasks.

1 Answers
Bobby Clapp answered 3 years ago
Tracking QR code via Google Analytics = https://www.sproutqr.com/blog/qr-code-tracking#toc-how-to-track-qr-code-scans If PHP is your route, your going to probably want to build a custom post/page template and use whatever PHP you find sufficient to accomplish your method of doing a function on page access/load (load probably has to be JS/JQuery). If parameters are the route you choose, you might use jquery to capture the parameters: https://stackoverflow.com/questions/4656843/get-querystring-from-url-using-jquery
Shawn Fawcett replied 3 years ago

ok thx. I'll have a go and get back

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right