Is it Possible to TriggerView in One Activity and Use SPA VEC in Another | Community
Skip to main content
Level 3
April 29, 2022
Solved

Is it Possible to TriggerView in One Activity and Use SPA VEC in Another

  • April 29, 2022
  • 1 reply
  • 718 views

Hello,

Is it possible to (1) create an Activity that adds event handler that calls `adobe.target.triggerView()` (Custom Code Modification), and then (2) create another Activity that uses this View in the VEC (like you would for any SPA)? Or is it strictly necessary that triggerView() be added in the SPA/code base itself outside of Target? I have tried using the QA link for Activity 1 when creating Activity 2 but without success.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by alexbishop

It is technically possible to do this but the general recommendation would be to add triggerView() calls via the tag manager or as part of web application code

1 reply

alexbishop
Adobe Employee
alexbishopAdobe EmployeeAccepted solution
Adobe Employee
March 22, 2023

It is technically possible to do this but the general recommendation would be to add triggerView() calls via the tag manager or as part of web application code