Get more content like this

Eloqua Integration with Sitecore

eloqua iIntegration with sitecore

Recently we had a requirement to track download of selected media library assets and also to collect some basic information about the visitor (which can vary from file to file and should be based on the form defined in Eloqua) and post it to Eloqua.

To accomplish this, we have created a new template “CustomMedia” that contains a checkbox field named “Track with Eloqua” and a General Link field named “EloquaLink” as shown below.

The first field indicates which asset downloads need to be tracked. The second field is a reference to the Eloqua form associated with the download.

The following templates were updated to inherit the “CustomMedia” template:

  • “sitecore/templates/System/Media/Unversioned/File”
  • “sitecore/templates/System/Media/Versioned/File”
  • “sitecore/templates/System/Media/Media Folder”

The next step is to create a custom MediaRequestHandler that will retrieve the associated form id for the media asset being downloaded, fetch the form fields from Eloqua and render them on a page for the user through a sublayout. When the page is submitted, the form field values are posted to Eloqua and the user is redirected to the asset download. If needed, a cookie can be used to hold the user-entered values so that the user need not enter form values on each download.

The web.config file needs to be updated to add the custom handler.

The last step is to integrate the Eloqua form with Sitecore for which we have created a new template containing a Single-Line text field named “FormId”. These items will contain the ids of the Eloqua forms and can be associated with the media assets for which we need to track the downloads.

If you would like more help on Eloqua Integration with Sitecore Contact Us Today.

Learn more about how TechAspect can help you propel your digital transformation

Get In Touch