Expand my Community achievements bar.

SOLVED

Send Data From Edge to Analytics

Avatar

Level 2

I have AEP Edge Configured on my mobile app.

How do I send data from Edge to Analytics? I have added Adobe analytics service in my data stream and mapped to a test report suite but can't see the data. What else is needed to see the data?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

Another reference, developer.adobe.com/client-sdks/documentation/getting-started/track-events/#send-events-to-edge-netw..., create the ExperienceEvent and send it out. A sample Swift code for a simple page view tracking

        let xdmData: [String: Any] = [
            "eventType": "web.webpagedetails.pageViews",
            "web": [
                "webPageDetails": [
                    "name": "Intro|Splash"
                ]
            ],
        ]
        
        let experienceEvent = ExperienceEvent(xdm: xdmData)
        Edge.sendEvent(experienceEvent: experienceEvent)

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor and Adobe Champion

Another reference, developer.adobe.com/client-sdks/documentation/getting-started/track-events/#send-events-to-edge-netw..., create the ExperienceEvent and send it out. A sample Swift code for a simple page view tracking

        let xdmData: [String: Any] = [
            "eventType": "web.webpagedetails.pageViews",
            "web": [
                "webPageDetails": [
                    "name": "Intro|Splash"
                ]
            ],
        ]
        
        let experienceEvent = ExperienceEvent(xdm: xdmData)
        Edge.sendEvent(experienceEvent: experienceEvent)