Developer forum

Forum » Swift » Google Analytics events

Google Analytics events

Simen Mindrebøe
Reply

Hi community,

I'm analyzing the Purchase and Checkout journey in Google Analytics.

In standard Swift, it seems like most events are available, except for view_item.
Has anyone successfully implemented this in an easy way for Swift? 

The documentation also lacks information on the view_item event – https://doc.dynamicweb.com/swift/setup-project/guides/google-analytics-and-google-tag-manager

 

Thanks,
Simen


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Simen

It should be in the standard Swift template for Swift 1:

https://github.com/dynamicweb/Swift/blob/v1.26.8/Swift/Files/Templates/Designs/Swift/eCom/ProductCatalog/ProductViewDetail.cshtml#L52

Or are you using Swift 2?

Votes for this answer: 1
 
Simen Mindrebøe
Reply

Hi Nicolai,

We are using Swift 1. I see that it was added to that file in Swift 1.22. Looks like we must have missed it when upgrading Swift.

Thank you!

 

You must be logged in to post in the forum