I've got two kinds of searches in my website:
/blog/search?q=some-blogpost
/products/search?q=some-product
I want to be able to analyze the searches my users are making on both of those channels separately.
Which option should I go for:
OPTION #1
- Fire all as a
search
event and add a custom prop to identify the type of search.
gtat("event","search", {
search_type: "BLOG" | "PRODUCT" // <<< THIS IS A CUSTOM PROP
search_term: string
});
OPTION #2
- Fire the searches as 2 separate custom events:
gtat("event","blog_search", {
search_term: string
});
gtat("event","product_search", {
search_term: string
});