Skip to content

Deploying a static CVS page on Netlify, to test SkinSAFE Insight's product badge rendering

Notifications You must be signed in to change notification settings

QasimQureshi/skinsafe-insights

Repository files navigation

SkinSAFE insights

Testing SkinSAFE insights product badge integration on CVS pharmacy

How to use insights

Include Insights.js

<script data-skinsafe="ssinsight" src="https://her-skinsafe-production.s3-us-west-2.amazonaws.com/insights/insights.js"></script>

And then call the skinSAFEinsights.renderBadges(element, ID, ID-type) method. The element the DOM element we render badges in. Supported ID types are slugs (like mario-badescu-drying-lotion-1-fl-oz), UPC codes ("upc") and product names ("name").

document.addEventListener('DOMContentLoaded', function(){
    skinSAFEinsights.renderBadges(
        document.querySelector('.skinsafe-badges'),
        "mario-badescu-drying-lotion-1-fl-oz",
        "slug");
})

About

Deploying a static CVS page on Netlify, to test SkinSAFE Insight's product badge rendering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published