This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"segmentID": "segment_1", | |
"name": "Mobile users that will complete a purchase", | |
"conditions": "predictions.funnel_stage.value:transaction AND (predictions.funnel_stage.probability: 0.5 TO 0.9) AND raw.device = 'mobile'", | |
"type": "computed" | |
}, | |
{ | |
"segmentID": "segment_3", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": "user_1", | |
"properties": { | |
"raw": { | |
"lastUpdatedAt": "2021-07-11T10:12:37Z", | |
"device": "mobile", | |
"sessionCount": 12, | |
"timeOnSite": "02:03:10", | |
"browser": "chrome", | |
"pageviews": 32, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Related Products", | |
"type": "related_products", | |
"compatibleSources": ["bigquery"], | |
"dataRequirements" : { | |
"minUsers": 10000, | |
"minDays": 90 | |
}, | |
"frequency" : “weekly” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intents.cart_abandonment.probability: 0.5 TO 0.9 | |
AND intents.next_order_value.value >= 50 | |
AND intents.affinities.brand.value = “adidas” | |
AND intents.affinities.brand.probability > 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": "user_123", | |
"intents": [ | |
{ | |
"intent-type": "goals", | |
"value": [ | |
{ | |
"name": "product_view", | |
"probability": 0.56 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"user": "user-123", | |
"informational-profile": { | |
"properties": { | |
"raw": { | |
"device": "mobile", | |
"sessionCount": 12, | |
"timeOnSite": "02:03:10", | |
"browser": "chrome", | |
"pageviews": 32, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Recommendations({ cartValue }) { | |
const { nextCartValue } = useNextCartValue(); | |
return ( | |
// Products with prices that do not exceed ${nextCartValue} | |
); | |
} | |
function App({ api }) { | |
const nextCartValue = api.getNextCartValue(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SearchListing({ results }) { | |
const { affinities } = useAffinities(); | |
const categoryAffinity = affinities.find((x) => (x.name = "category")); | |
const brandAffinity = affinities.find((x) => (x.name = "brand")); | |
const colorAffinity = affinities.find((x) => (x.name = "color")); | |
return ( | |
// Display results that match category, brand and color affinities | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": "user_123", | |
"intents": [ | |
{ | |
"intent-type": "goals", | |
"value": [ | |
{ | |
"name": "product_view", | |
"probability": 0.56 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install | |
bower install | |
gulp | |
gulp watch (optional, if you want the app to refresh with the latest changes) | |
ionic serve |