Missing data in Adobe Analytics integration with PDF Embed API

New Here ,
Jul 07, 2022 Jul 07, 2022

Copy link to clipboard

Copied

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?

TOPICS
PDF Embed API

Views

30

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation

Make content for your business needs with Adobe Express.

Get started easily with free templates: