# LogSnag for SaaS

## Getting Started

Starting with LogSnag for SaaS is simple. Just add `user_id` to your logs! Then, these logs will link to the user who set off the event. This will help you understand user behavior. You can track events such as `purchase made`, `item added to cart`, `subscription upgraded`, or `support ticket submitted.`

{% hint style="info" %}
We strongly recommend using our in-house SDKs. They simplify the integration process and make it incredibly easy to get started with LogSnag.
{% endhint %}

## User Profiles

After you've sent the first event with a `user_id` parameter, a user profile will be created for that user. This profile will include details about the user, like their first and last seen dates, the number of sessions they've had, their activity usage, their journey within your app, and more.

To learn more about user events, have a look at the /log endpoint section.

{% content-ref url="/pages/6994vR8X0vBWH0AoJtg5" %}
[Log](/api-reference/log.md)
{% endcontent-ref %}

## User Properties

Besides the fresh charts and metrics generated from user activity, you can also add key-value properties to a user profile.&#x20;

This can be beneficial for incorporating extra information into a user profile, which can then be used for filtering and searching. For instance, you can add details like a user's email address, subscription plan, their last payment date, and more to their profile. This allows you to get a comprehensive view of the user just by looking at their profile.

For more information on user properties, please refer to the /identify endpoint section.

{% content-ref url="/pages/K5zs92Wz1oU9bvKXsjME" %}
[Identify](/api-reference/identify.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.logsnag.com/logsnag-for-saas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
