|
|
|
@ -228,7 +228,7 @@ void Network::sendOptOut()
|
|
|
|
|
|
|
|
|
|
QJsonDocument doc;
|
|
|
|
|
doc.setArray(array);
|
|
|
|
|
emit requestMixpanel(doc.toJson(QJsonDocument::Compact), true /*isOptOut*/);
|
|
|
|
|
emit requestMixpanel(doc.toJson(QJsonDocument::Compact));
|
|
|
|
|
|
|
|
|
|
#if defined(DEBUG)
|
|
|
|
|
printf("%s %s\n", qPrintable("opt_out"), qPrintable(doc.toJson(QJsonDocument::Indented)));
|
|
|
|
@ -339,11 +339,8 @@ void Network::sendIpify()
|
|
|
|
|
connect(reply, &QNetworkReply::finished, this, &Network::handleIpifyFinished);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Network::sendMixpanel(const QByteArray &json, bool isOptOut)
|
|
|
|
|
void Network::sendMixpanel(const QByteArray &json)
|
|
|
|
|
{
|
|
|
|
|
if (!m_sendUsageStats)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
QUrl trackUrl("https://api.mixpanel.com/track");
|
|
|
|
|
QNetworkRequest request(trackUrl);
|
|
|
|
|
QSslConfiguration conf = request.sslConfiguration();
|
|
|
|
|