* Sent screen view is called when the user changed the applications view. * These action of the user should be noticed and reported. Therefore * a QUrlQuery is build in this method. It holts all the parameter for * a http POST. The UrlQuery will be stored in a message Queue. */
| 130 | * a http POST. The UrlQuery will be stored in a message Queue. |
| 131 | */ |
| 132 | void GAnalytics::sendScreenView(const QString &screenName, const QVariantMap &customValues) |
| 133 | { |
| 134 | d->logMessage(Info, QString("ScreenView: %1").arg(screenName)); |
| 135 | |
| 136 | QUrlQuery query = d->buildStandardPostQuery("screenview"); |
| 137 | query.addQueryItem("cd", screenName); |
| 138 | query.addQueryItem("an", d->m_appName); |
| 139 | query.addQueryItem("av", d->m_appVersion); |
| 140 | appendCustomValues(query, customValues); |
| 141 | |
| 142 | d->enqueQueryWithCurrentTime(query); |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * This method is called whenever a button was pressed in the application. |
no test coverage detected