This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input code="mpath.referer.search-words"> | |
<categorize match="France"> | |
<assign-user-attribute code="travel-searchers"/> | |
</categorize> | |
</input> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input code="mpath.geo-lite.country-name"> | |
<categorize match="France"> | |
<assign-segment code="western-europeans"/> | |
</categorize> | |
</input> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input code="landingPage"> | |
<categorize match="apparel"> | |
<assign-segment code="interested-in-apparel"/> | |
</categorize> | |
</input> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input code="mpath.present.hour"> | |
<range start="0" end="11"> | |
<assign-user-attribute code="morning-visitors"/> | |
</range> | |
</input> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input code="pastPurchaseAmount"> | |
<range start="1000" end="999999"> | |
<assign-segment code="big-spenders"/> | |
</range> | |
</input> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 $("div#downloads a").click(function() { | |
2 $.ajax({ | |
3 url:"http://mycompany.conductrics.net/mpath/api", | |
4 data: { | |
5 "verb": "send-reward", | |
6 "goal": "download", | |
7 "agent": "sample-agent-1" | |
8 }, | |
9 dataType: "jsonp" | |
10 }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="downloads"> | |
<a href="document-1.pdf">Price List</a> | |
<a href="document-2.pdf">Store Hours</a> | |
<a href="document-3.pdf">Bumper Sticker </a> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<goals> | |
<goal code="download" description="Download"/> | |
</goals> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
success: function(mpathResponse) { | |
// do something with mPath's decision | |
if (mpathResponse.options"home-page"]["welcome-style"].code == "fancy") { [ $('#plainWelcome').hide(); | |
$('#fancyWelcome').show(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 $(document).ready(function() { | |
2 $.ajax({ | |
3 url:"http://mycompany.conductrics.net/mpath/api", | |
4 data: { | |
5 "verb": "get-decision", | |
6 "decision-point": "home-page", | |
7 "agent": "sample-agent-1" | |
8 }, | |
9 dataType:"jsonp", | |
10 success: function(mpathResponse) { |