Skip to main content
Participant
July 7, 2022
Question

Missing data in Adobe Analytics integration with PDF Embed API

  • July 7, 2022
  • 0 replies
  • 207 views

When viewing Adobe Analytics data after interacting with a PDF by copying text and clicking hyperlinks, the data does not include information on what text was copied or what link (URL) was clicked. 

 

If I do a console log of the event data, it does show what text was copied and what link URL was clicked, but this is not reflected in Adobe Analytics. In Adobe Analytics, the only data available is “hyperlinkOpen: 1” and “copyText: 1” along with the filename. 

 

In the ViewSDKInterface.js code, I’ve reviewed the functions that send data objects to Adobe Analytics and realized it does not attempt to send the data for copied text or hyperlink URLs. However it does send the data for searched text via “n.data.searchedText” as shown below:

 

                key: "_addAnalyticsDataForTextSearch",

                value: function _addAnalyticsDataForTextSearch(e, t, n) {

                    return {

                        dataObjectForAA: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, e), {}, {

                            "a.action": X.SEARCH,

                            "a.dc.search": 1,

                            "a.dc.searchTerm": n.data.searchedText

                        }),

                        dataObjectForGA: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, t), {}, {

                            action: X.SEARCH,

                            parameters: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, t.parameters), {}, {

                                searchTerm: n.data.searchedText

                            })

                        })

                    }

                }

            }, {

                key: "_addAnalyticsDataForBookmarkClick",

                value: function _addAnalyticsDataForBookmarkClick(e, t) {

                    return {

                        dataObjectForAA: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, e), {}, {

                            "a.action": X.BOOKMARK_CLICK,

                            "a.dc.bookmarkClicked": 1

                        }),

                        dataObjectForGA: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, t), {}, {

                            action: X.BOOKMARK_CLICK

                        })

                    }

                }

            }, {

                key: "_addAnalyticsDataForHyperlinkOpen",

                value: function _addAnalyticsDataForHyperlinkOpen(e, t) {

                    return {

                        dataObjectForAA: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, e), {}, {

                            "a.action": X.HYPERLINK_OPEN,

                            "a.dc.hyperlinkOpen": 1

                        }),

                        dataObjectForGA: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, t), {}, {

                            action: X.HYPERLINK_OPEN

                        })

                    }

                }

            }, {

                key: "_addAnalyticsDataForTextCopy",

                value: function _addAnalyticsDataForTextCopy(e, t) {

                    return {

                        dataObjectForAA: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, e), {}, {

                            "a.action": X.TEXT_COPY,

                            "a.dc.copyText": 1,

                        }),

                        dataObjectForGA: PDFAnalyticsFeederService_objectSpread(PDFAnalyticsFeederService_objectSpread({}, t), {}, {

                            action: X.TEXT_COPY

                        })

                    }

                }

            }, {

 

 

It seems like the data object for HYPERLINK_OPEN and TEXT_COPY should be updated to include the hyperlink URL and copied text, similar to the way it is done for SEARCH.

 

Is there a workaround for getting this data sent to Adobe Analytics?

This topic has been closed for replies.