Capturing clicks on the click-through URL
The CaptureClickThrough API is part of the Container REST services. The API provides the ability to easily capture a Clicked outcome for an action returned by the Container service, and redirect the customer to the web page as defined on the action ruleform.
The ClickThroughURL is part of the response payload for the Container API and can be set on the event listener for the next-best-action as displayed on the web page. The ClickThroughURL property contains the URL with encoded properties such as issue, group, name, direction and channel, for example:
http://<host>:<port>/PRRestService/PegaMKTContainer/Services/CaptureClickThrough?
Px=%7Bpr%7DFHSNTMUyyf5ILyZaDwnWva4WmiW4pAqwVB%2FkqLmImQ0vlhvUeTWHx5nbp%2BxtHOnDgRzb08HrNW6O%0Ac5U%2BEEv%
2BRKQFwhEnjeJQIvHod7XyvOLhPW4X%2Bzbx0SXOesvO143Lb4RZ0EGO5q8MF9wg%2Btaqzawb%0AJgcQLRikhOs7HFOAPip9de7O3sjjnd%
2FwZxBrHIRCJottgxKsgp5fZl%2FyZGSRvmJsIqALhdjnEDsw%0AvhtdoPpZ15nKOcpB8%2FKb7xCymagFDbhgInNUzcANJT6SeAiHEvIQ%
2Bq66j4rcP%2B%2BDyMKnvMFnFg%2FC%0AjVtTUzF%2BgkPuumBrdgSJDG%2BjgoJ3GTiUsrPuYQ5BUp4cMEsmXpHkBS4jIZAwG2p3PNzO2eiyFzo2%
0AoKtxN%2FBlKlrBSlRFjlIK9N6s85ZiURqgwRPoZnaZGN1LfvCPkn8AQXMSjnUL9th9HX2yNj6Sf17f%0A5dP1levuJ1nbIbNKCXMwWsZD4U4cMBIzHpU%3D
The invocation URL for this service resembles the following:
http://<host>:<port>/prweb/PRRestService/PegaMKTContainer/Services/CaptureClickThrough?
Previous topic Accessing a customer's interaction history with the CustomerOfferHistory REST service Next topic Configuring a container invocation script