title: Sending page identifier with event to Google analytics via PHP
body: <p>Not sure if stackoverflow is the appropriate place to post this but couldn't find a better place.</p>
  <p>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...</p>
  <ol>
  <li>A single form on each of the listing pages.</li>
  <li>A quick contact button. This triggers a form submission from previously stored user data.</li>
  <li>A bulk enquiry form. Users input their search terms and a form submission is create for each listing matching the search query.</li>
  </ol>
  <p>We want a way of tracking the number of submissions per listing in Google Analytics.</p>
  <p>I was thinking of sending an event from the server* when the submission process is successful.</p>
  <p>*Using the <a href="https://developers.google.com/analytics/devguides/collection/protocol/v1/" rel="nofollow noreferrer">Measurement Protocol</a>.</p>
  <p>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 <a href="https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#events" rel="nofollow noreferrer">4 parameters</a> (<code>category</code>, <code>action</code>, <code>label</code>, <code>value</code>) that we can utilise.</p>
  <p>Would an event structure like the below be recommended?</p>
  <ul>
  <li><strong>Category:</strong> <code>Conversion</code></li>
  <li><strong>Action:</strong> <code>Single submission</code> | <code>Quick contact</code> | <code>Bulk submission</code></li>
  <li><strong>Label:</strong> <code>id:192944</code> | <code>https://example.com/listing-uri/</code></li>
  </ul>
  <p>Any advice would be really appreciated.</p>