如文档中所述,我必须为 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
我试图发送字符串而不是数组,但是 mandralapi 把我踢了出去(请输入一个数组)......我错过了什么吗?谢谢你的帮助 !
这是 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"
}
]
}
}