Quizzes - Connect Window API
Functions
showQuiz
showQuiz Example Usage
<script>
window.okeConnectApi.showQuiz(channelQuizId, subscriberId);
</script>Custom Liquid Usage
<a
href="#"
onclick="okeConnectApi.showQuiz('your-channel-quiz-id', 'your-subscriber-id')"
class="button button--full-width">Take our quiz
</a>Parameters
Parameter
Description
Value Type
Required
recommendedProductMounted
recommendedProductMounted Example Usage
Parameters
Parameter
Description
Value Type
Required
recommendedProductsMounted
recommendedProductsMounted Example Usage
Parameters
Parameter
Description
Value Type
Required
generateCartLineItemProperties
generateCartLineItemProperties Example Usage
Parameters
Parameter
Description
Value Type
Required
Events
oke_quizCapture_addToCart
oke_quizCapture_addToCart Example Usage
Headless Events
Installing Quizzes on Headless Instancesoke_quizCapture_addToCartSuccess
oke_quizCapture_addToCartFailure
oke_connect_cart_itemVariantAdded
oke_connect_checkout_orderSubmitted
Last updated