To track things like a download of a PDF document, there is no actual page on your website on which to place a conversion. In these cases, you may want to use an onclick event to measure when the document is downloaded.

Creating an onclick conversion in LeadsRx

  1. Go to the gear icon at the top right and choose SETTINGS.
  2. In the CONVERSIONS section, select Manage.
  3. Select the Track a Conversion button.
  4. Name the conversion, and set the conversion type to API or upload for how you want it to be measured.
  5. Don't forget to SAVE changes at the bottom right of the screen.
  6. Locate your new conversion from the list and click the View conversion scripts link.
  7. Use OPTION 1 if you will not be passing user data. Otherwise, you can use OPTION 2.
  8. Copy the code and attach it to an "onclick" event on your website (e.g. a PDF download) to trigger a conversion.

The button clickEvent() can be any name as long as it matches the function. The <script> will need to be at the bottom of the page below our LeadsRx Universal Tracking Pixel script and above the </body>.

Generic Example:

<button onclick="clickEvent();">Click me</button><script type="text/javascript">     function clickEvent() {          _lrx_sendEvent('conversion', ENTER CORRECT CONVERSION ID HERE);      }</script>

See: Locating conversion ID numbers (leadID)