如文档中所述,我必须为google_analytics_domains和google_analytics_campaign字段发送数组。
http://mandrillapp.com/api/docs/messages.html#method=send
但是mandrill会生成一个错误的utm_campaign链接(Google分析不喜欢[0]部分):
utm_campaign[0]=test_campaign
我试图发送字符串而不是数组但是mandrallapi把我踢出去(请输入一个数组)...我错过了什么吗?谢谢你的帮助!
以下是mandrillapp的请求示例:
{
"key":"apikey",
"message":{
"html":"example html",
"text":"example text",
"subject":"example subject",
"from_email":"from_email@example.com",
"from_name":"example from_name",
"to":[
{
"email":"email@example.com",
"name":"example name"
}
],
"headers":{
"...":"..."
},
"track_opens":true,
"track_clicks":true,
"auto_text":true,
"url_strip_qs":true,
"bcc_address":"bcc_address@example.com",
"merge":true,
"global_merge_vars":[
{
"name":"example name",
"content":"example content"
}
],
"merge_vars":[
{
"rcpt":"rcpt@example.com",
"vars":[
{
"name":"example name",
"content":"example content"
}
]
}
],
"tags":[
"example tags[]"
],
"google_analytics_domains":[
"..."
],
"google_analytics_campaign":[
"..."
],
"metadata":[
"..."
],
"attachments":[
{
"type":"example type",
"name":"example name",
"content":"example content"
}
]
}
}