# `Beancount.Directives.PushTag`
[🔗](https://github.com/thanos/beancount_ex/blob/v0.6.0/lib/beancount/directives/push_tag.ex#L1)

The `pushtag` directive pushes a tag onto Beancount's tag stack.

See [The Tag Stack](https://beancount.github.io/docs/beancount_language_syntax/#the-tag-stack).

## Beancount syntax

    pushtag #trip

General form: `pushtag #Tag`

Tags pushed here are automatically applied to following transactions until
a matching `poptag`.

## Elixir struct

    %Beancount.Directives.PushTag{
      tag: "trip"
    }

Or use `Beancount.push_tag/1`:

    Beancount.push_tag("trip")

## Fields

  * `tag` - tag name without the `#` prefix (rendered as `pushtag #trip`).

# `t`

```elixir
@type t() :: %Beancount.Directives.PushTag{tag: String.t()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
