Predict Visitor Purchases with a Classification Model in BigQuery ML Reviews

109946 reviews

Rishav R. · Reviewed أكثر من 5 سنوات ago

fdfgfg d. · Reviewed أكثر من 5 سنوات ago

RIA S. · Reviewed أكثر من 5 سنوات ago

Prachi V. · Reviewed أكثر من 5 سنوات ago

Michaella S. · Reviewed أكثر من 5 سنوات ago

Srishti M. · Reviewed أكثر من 5 سنوات ago

Abhijeet K. · Reviewed أكثر من 5 سنوات ago

easy

saboor k. · Reviewed أكثر من 5 سنوات ago

SELECT * FROM ml.PREDICT(MODEL `ecommerce.classification_model_2`, ( WITH all_visitor_stats AS ( SELECT fullvisitorid, IF(COUNTIF(totals.transactions > 0 AND totals.newVisits IS NULL) > 0, 1, 0) AS will_buy_on_return_visit FROM `data-to-insights.ecommerce.web_analytics` GROUP BY fullvisitorid ) SELECT CONCAT(fullvisitorid, '-',CAST(visitId AS STRING)) AS unique_session_id, # labels will_buy_on_return_visit, MAX(CAST(h.eCommerceAction.action_type AS INT64)) AS latest_ecommerce_progress, # behavior on the site IFNULL(totals.bounces, 0) AS bounces, IFNULL(totals.timeOnSite, 0) AS time_on_site, totals.pageviews, # where the visitor came from trafficSource.source, trafficSource.medium, channelGrouping, # mobile or desktop device.deviceCategory, # geographic IFNULL(geoNetwork.country, "") AS country FROM `data-to-insights.ecommerce.web_analytics`, UNNEST(hits) AS h JOIN all_visitor_stats USING(fullvisitorid) WHERE # only predict for new visits totals.newVisits = 1 AND date BETWEEN '20170701' AND '20170801' # test 1 month GROUP BY unique_session_id, will_buy_on_return_visit, bounces, time_on_site, totals.pageviews, trafficSource.source, trafficSource.medium, channelGrouping, device.deviceCategory, country ) ) ORDER BY predicted_will_buy_on_return_visit DESC;

Pratik J. · Reviewed أكثر من 5 سنوات ago

Himangini k. · Reviewed أكثر من 5 سنوات ago

Chiranjeet M. · Reviewed أكثر من 5 سنوات ago

Hritik K. · Reviewed أكثر من 5 سنوات ago

Akash G. · Reviewed أكثر من 5 سنوات ago

Souvik R. · Reviewed أكثر من 5 سنوات ago

Rahul K. · Reviewed أكثر من 5 سنوات ago

Krishna S. · Reviewed أكثر من 5 سنوات ago

ANKIT B. · Reviewed أكثر من 5 سنوات ago

Great

Harshit S. · Reviewed أكثر من 5 سنوات ago

Badhon R. · Reviewed أكثر من 5 سنوات ago

Atul V. · Reviewed أكثر من 5 سنوات ago

Yael A. · Reviewed أكثر من 5 سنوات ago

Maradiya A. · Reviewed أكثر من 5 سنوات ago

Muhammad H. · Reviewed أكثر من 5 سنوات ago

A lot of advanced SQL statements. May not be appropriate for beginners.

Andy Qui L. · Reviewed أكثر من 5 سنوات ago

okay

Divyashree A. · Reviewed أكثر من 5 سنوات ago

We do not ensure the published reviews originate from consumers who have purchased or used the products. Reviews are not verified by Google.