Hi, is there any documentation on how to do tracking in graph? I know that it's possible in the c# library, but just w…

Hi, is there any documentation on how to do tracking in graph? I know that it's possible in the c# library, but just wanted to know how to do it directly with the rest api.

Originally asked in the Optimizely Community Slack: #optimizely-graph.

#343504
Jul 16, 2026 17:41
Vote:
#343505
Jul 16, 2026 23:43

even using the SDK does not seem up to date doing this :

       var query = _graphContentClient.QueryContent<ProductDetailPage>()
            .SearchFor(request.SearchTerm!)
            .UsingField(f => f.ProductName, boost: 5)
            .UsingField(f => f.ProductDescription, highlightTag: "strong", boost: 3)
            .UsingField(f => f.ProductCode, highlightTag: "strong", boost: 1)
            .Track();

and then checking the GraphQL output it generates :

(1 attachment from the Slack thread was not included.)

#343506
Jul 17, 2026 13:49

Thanks @Dan Isaacs this is exactly what I was looking for.
Sorry for the late response; I was away on holiday

#343507
Aug 02, 2026 9:09
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.