Google Analytics for particular section on home page in swift 3

49 Views Asked by At

I want to check user by Google Analytics for particular section or collection view cell data on home page in app .

But the problem is that I want to perform google analytics without clicking collection view cell or product shows on screen ,as the collection view cell shows on screen and it will automatically notified that the cell or item is seen by the user . please help me to get some idea

Thanks in advance

1

There are 1 best solutions below

2
Sebastian Guerrero On BEST ANSWER

What I would do is on the Controller holding the TableView add this method:

func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath)

and add the Google Analytics code there. You can also add some logic if there are only certain cell to track with Google Analytics.