Skip to main content
Solved

Sending campaign through API without smart send and with UTM tracking


Forum|alt.badge.img+3

Hi !

I want to schedule a campaign using an API call in PHP without the smart sending option but with the UTM tracking option and it does not seem to work.

 

I am able to create and schedule the campaign, but no matter the value I provide for parameters use_smart_sending and add_google_analytics, the first one always ends upTRUE and the second one always FALSE.

 

Everything else works as expected and I have been able to schedule test mailing to the list I want with the template I want, but impossible to set correctly these 2 parameters.

 

Any idea of what the problem could be ?

 

Thanks! 

Best answer by julie.accardo

Hi @jocallier,

One issue I notice arises sometimes is the formatting for smart sending and google analytics. You’ll want to make sure that both the -d use_smart_sending=False \ -d add_google_analytics=True do not have quotations around them. Curious if this has been formatted properly?

Best,

Julie

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

julie.accardo
Klaviyo Employee
Forum|alt.badge.img+36
  • Klaviyo Employee
  • 185 replies
  • Answer
  • March 27, 2021

Hi @jocallier,

One issue I notice arises sometimes is the formatting for smart sending and google analytics. You’ll want to make sure that both the -d use_smart_sending=False \ -d add_google_analytics=True do not have quotations around them. Curious if this has been formatted properly?

Best,

Julie


Forum|alt.badge.img+3
  • Author
  • Contributor II
  • 4 replies
  • March 30, 2021

Hi Julie !

You were right, it was exactly the problem.

The system was trying to send ‘true’ or ‘false’ as boolean but sending True or False as you said did the trick.

 

I have been able to create and schedule the campaign with the correct parameters.

 

Thanks for your help !