Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
Please check this thread as well: Tracking beyond one source. I’m partial to #2 from that thread. We have an app that logs each touch to a Custom Object, that way we get the full journey and can give credit accordingly:
#set( $contentMap = {} )#foreach( $item in $scriptTokenContent_cList )#set( $void = $contentMap.put( $item.campaignId, $item.content0 ) )#end$contentMap.get($MAContext.programId)
You won’t be able to track clicks. The tradeoff is the links actually work. 😁
I didn't need the campaignId so I simplified it a little, should this change matter? It doesn’t matter in this specific case, but there’s no way of knowing how $programId is set if you don’t show the code! Anyway, after a couple hours of debugging, I found no way to use the $programId when it’s in t...
No, it comes from an edit to the solution in your blogpost - see response here(I was asking where Sant’s advice came from because it wasn’t pertinent to the situation.)
Thanks for the suggestion @Sant_Singh_Rath, I've tried that but coercing to a string like you suggest didn't work.There’s no need to convert a java.lang.String to a string — that just creates another string! And concatenating with "" is the same as calling toString() on an object that implements a s...
You’ve done a good job describing the issue and your tests. But you can’t be using the exact code from my blog post because that code doesn’t set $programId. It sets $MAContext.programId, i.e. a property on an object. What is the actual code you’re using to export the Program ID?
In Velocity, $programId is not a plain string or integer. It’s a Marketo token value that gets resolved late and behaves more like a wrapped object. When you print it, Velocity renders 1062, but when you try to compare it using .equals () or after converting it, the comparison fails because the unde...
As @Sant_Singh_Rath says, between these 2 choices the Submit Form REST API endpoint is far superior. But there’s yet a 3rd choice which is the most scalable, and that’s using the the Forms JS API to submit a hidden form. Not only is there in practice no limit to such submissions (unlike with the RES...
No, I do mean tracking should be disabled. Otherwise, the link is no longer a tel: link, it’s an https:link. You will have compatibility problems on some devices as a result.