Skip to content

Instantly share code, notes, and snippets.

@Dayjo
Last active Oct 31, 2019
Embed
What would you like to do?
Tracking Unsplash on Create

Unsplash Tracking for Create

  • Add metadata column to images table
ALTER TABLE images
ADD metadata json default null,
ALGORITHM=INPLACE,
LOCK=NONE;
  • Update the VueFineUploader to include / send the external id and post to create
  • Store external source and id in meta data table column

Content Builder

  • Update Create Image Endpoint to return external and external_id

If inserting an external image set the external tracking data and class as per Content Builder

  • TinyMCE
  • Pagebuilder
  • On non content builder sites output the javascript to do the tracking as with content builder sites. (in the powered by include)

Low priority

  • Gallery
  • Slideshow
  • Banner Widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment