tiki-archive / integrations

A collection of example implementations
MIT License
1 stars 1 forks source link

Use Shopify customer ID as TIKI user ID #58

Closed ricardobrg closed 1 year ago

ricardobrg commented 1 year ago

As a developer, I want to present the TIKI UI and save the user's decision in cookies, So that I can create a TIKI license when the user logs into Shopify.

Description

The TIKI app should present the UI without initializing the TIKI SDK when a user visits the store and is not logged in. The user's decision regarding the Offer should be saved in cookies.

When the user logs into Shopify, the app should initialize the TIKI SDK with the Shopify customer id as TIKI user ID.

When the TIKI SDK is initialized, the app should create a TIKI License Record with the appropriate use case (no use cases if denied, attribution use case if allowed).

If the app is installed in a store with already logged-in users, the TIKI SDK should be initialized on their first visit with their Shopify customer ID, and create the license with their decision.

Tasks