---
title: "Extensions"
id: "extensions"
project: "Contextual Commerce"
url: "https://docs.bazaarvoice.com/articles/contextual-commerce/extensions"
updated: 2026-10-15T09:12:47Z
---

# Extensions

###  View

Declaration:


```
public extension View

```
 

See more
 * * *
 
####  

`granifyScrollTracking()` Since 7.1.0
 A custom modifier used by Contextual Commerce to collect scroll statistics from a page that uses a SwiftUI `ScrollView`. Add this modifier to the top-level(or highest level) `ScrollView` on a page that was created using SwiftUI’s declarative structure. Do not add this modifier to more than one `ScrollView` on a given page. If this modifier is present on a page, do not include a `mainScrollView` in that page’s `trackPageView` call.
 
Declaration:
 
```
func granifyScrollTracking() -> some View

```


[![Provide feedback button](/resources/Storage/contextual-commerce/bv-global/topic-footer-2026/provide-feedback-button.png)](https://docs.google.com/forms/d/1qGZ5rApqDrXO_j6vNzcDihDAOPMEjmUr1alHvcEIbQU/edit)