Skip to content

Instantly share code, notes, and snippets.

@Dayjo
Last active October 31, 2019 14:40
Show Gist options
  • Save Dayjo/4683c7253503b4c5292ef2656ed6e915 to your computer and use it in GitHub Desktop.
Save Dayjo/4683c7253503b4c5292ef2656ed6e915 to your computer and use it in GitHub Desktop.
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